public void NextTask() { if (curTask == null) { return; } IGuideManagerData data = curTask.GetIGuideTaskData(); curTask = null; LoadUiResource.DestroyLoad(GameConstDefine.UIGuideRestPath); if (data.NextTaskId.ElementAt(0) == -1) { //ask all end HolyGameLogic.Instance.EmsgTocsAskFinishUIGuideTask(1, data.TaskId, 1); data = null; StartTriggerTask(); SetTaskIsFinish(true, true); return; } // ask end HolyGameLogic.Instance.EmsgTocsAskFinishUIGuideTask(1, data.TaskId, 0); for (int i = 0; i < data.NextTaskId.Count; i++) { SetTaskId(data.NextTaskId.ElementAt(i)); } data = null; }
//销毁窗体 protected void Destroy() { if (mRoot) { LoadUiResource.DestroyLoad(mRoot.gameObject); mRoot = null; } }
void DestroySkillNewsGuide() { if (taskData.TaskId == newsGuideTaskId) { LoadUiResource.DestroyLoad(GameConstDefine.SkipNewsGuidePath); objSkipNewsGuide = null; } }
public void DestroyFocoEnergiaStart() { if (null != focoEffectStart) { LoadUiResource.DestroyLoad(GameDefine.GameConstDefine.FuryStartLongPressEffect); focoEffectStart = null; } }
private void DestroyFullFuryEffect() { if (null != furyFullEffect) { LoadUiResource.DestroyLoad(GameDefine.GameConstDefine.FuryFullFuryInfoEffect); furyFullEffect = null; } }
void OnGameOver(CEvent eve) { LoadUiResource.DestroyLoad(parentPath); //if (EventCenter.mEventTable.ContainsKey(EGameEvent.eGameEvent_GameOver)) //{ // EventCenter.RemoveListener<CEvent>(EGameEvent.eGameEvent_GameOver, OnGameOver); //} }
void ChangeScense() { EventCenter.RemoveListener((Int32)GameEventEnum.GameEvent_ScenseChange, ChangeScense); if (objTip != null) { LoadUiResource.DestroyLoad(path); } }
void NotifyGameOver() { timeLimit = 0f; SceneGuideTaskManager.Instance().SetHasFinishedAllGuide(true); CGLCtrl_GameLogic.Instance.EmsgToss_FinishAllGuideToLobby(); if (UINewsGuide.Instance != null) { LoadUiResource.DestroyLoad(SceneGuideTaskManager.guideUiPath); } }
public void OnUpdate() { if (objTip != null) { TimeSpan span = GameTimeData.Instance.GetGameTime(); if (span.TotalSeconds >= timeLimit) { LoadUiResource.DestroyLoad(path); objTip = null; } } }
public void Exit() { EventCenter.RemoveListener <UInt64>((Int32)GameEventEnum.GameOver, OnGameOver); EventCenter.RemoveListener <FEvent>((Int32)GameEventEnum.Loading, OnEvent); EventCenter.RemoveListener((Int32)GameEventEnum.ConnectServerFail, OnConnectServerFail); EventCenter.RemoveListener((Int32)GameEventEnum.GameEvent_SdkLogOff, SdkLogOff); EventCenter.RemoveListener((Int32)GameEventEnum.ReconnectToBatttle, OnReconnectToBatttle); LoadUiResource.DestroyLoad(mUIRoot); GamePlayCtrl.Instance.Exit(); }
void ChangeScense() { LoadUiResource.DestroyLoad(GameConstDefine.UIGuideRestPath); }