void InTransition_Update() { if (this.loadingBar) { loadingBar.FillAmount(curAsync.progress); } if (curAsync.isDone) { Log.MessageFormat("{0}::InTransition_Update {1}", this.GetType().Name, nextScene); state = SceneManagerState.Normal; Debug.Log("nextScene: " + nextScene); TaskRunner.Instance.Run(GameObject.Find(nextScene).GetComponent <IScene> ().Initialize(sceneOptions)); mCurScene = nextScene; nextScene = null; sceneOptions = null; } }