//加载完成 protected void FinishLoading() { CancelInvoke("StartLoading"); EHLoadingEvent evt = new EHLoadingEvent(); evt._state = true; EventCenter.Instance.TriggerEvent(evt); }
//加载游戏完成 protected void FinishLoadingGame(IEvent evt) { EHLoadingEvent e = evt as EHLoadingEvent; if (!e._state) { //游戏加载失败 } Destroy(_loadingUI.gameObject); _loadingUI = null; _loginUI = ResourcesManager.Instance.GetIniPrefabResourceByName("LoginUI").AddComponent <LoginUI>(); _loginUI.Initialization(null, false); EventCenter.Instance.RemoveEventListenerPermanently((int)EHGameProcessEventID.Process_Loading_Event, FinishLoadingGame); }