protected override void Update() { if (asyn != null) { //asyn.progress的范围是0~1(最大检测范围到0.9,所以在0.9的时候就可以显示场景了) if (asyn.progress < 0.9f) { //正在加载场景中ing theProgress = (int)asyn.progress * 100; } else { theProgress = 100; } if (barProgress <= theProgress) { barProgress++; if (view != null) { view.SetSlider(barProgress); } if (barProgress == 100) { asyn.allowSceneActivation = true; UIManager.Instance.HideTheUI(EUiId.LoadingView); } } } }