这篇属于杂记,用于记录不甚理解的AsyncOperation
AsyncOperation;
//加载进度条
public Silder silder;
加载场景
public void LoginGame()
{
asyncoperation = SceneManager.LoadSceneAsync(1);
}
public void Update()
{
if(asyncoperation !=null)
{
silder进度条的数值与操作数的进程属性相等;
silder=asyncoperation.progress;//c操作数的进程属性的变化值范围默认的是0-1;
}
}