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;
        }
Exemple #2
0
 //销毁窗体
 protected void Destroy()
 {
     if (mRoot)
     {
         LoadUiResource.DestroyLoad(mRoot.gameObject);
         mRoot = null;
     }
 }
Exemple #3
0
 void DestroySkillNewsGuide()
 {
     if (taskData.TaskId == newsGuideTaskId)
     {
         LoadUiResource.DestroyLoad(GameConstDefine.SkipNewsGuidePath);
         objSkipNewsGuide = null;
     }
 }
Exemple #4
0
 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);
     //}
 }
Exemple #7
0
 void ChangeScense()
 {
     EventCenter.RemoveListener((Int32)GameEventEnum.GameEvent_ScenseChange, ChangeScense);
     if (objTip != null)
     {
         LoadUiResource.DestroyLoad(path);
     }
 }
Exemple #8
0
 void NotifyGameOver() {
     timeLimit = 0f;
     SceneGuideTaskManager.Instance().SetHasFinishedAllGuide(true);
     CGLCtrl_GameLogic.Instance.EmsgToss_FinishAllGuideToLobby();
     if (UINewsGuide.Instance != null) {
         LoadUiResource.DestroyLoad(SceneGuideTaskManager.guideUiPath);
     }
 }
Exemple #9
0
 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);
 }