private void OnLoadSceneSuccess(GameEventBase gameEventBase) { LoadSceneSuccessGameEvent ne = (LoadSceneSuccessGameEvent)gameEventBase; //todo m_IsChangeSceneComplete = true; }
private void OnLoadSceneSuccess(GameEventBase gameEventBase) { LoadSceneSuccessGameEvent ne = (LoadSceneSuccessGameEvent)gameEventBase; if (ne.UserData != this) { return; } Log.Info("Load scene '{0}' OK.", ne.SceneAssetName); if (m_BackgroundMusicId > 0) { GameEntry.Sound.PlayMusic(m_BackgroundMusicId); } if (InitForm.Instance != null) { InitForm.Instance.DestroySelf(); } m_IsChangeSceneComplete = true; }