예제 #1
0
        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;
        }
예제 #2
0
 //销毁窗体
 protected void Destroy()
 {
     if (mRoot)
     {
         LoadUiResource.DestroyLoad(mRoot.gameObject);
         mRoot = null;
     }
 }
예제 #3
0
 void DestroySkillNewsGuide()
 {
     if (taskData.TaskId == newsGuideTaskId)
     {
         LoadUiResource.DestroyLoad(GameConstDefine.SkipNewsGuidePath);
         objSkipNewsGuide = null;
     }
 }
예제 #4
0
파일: Entity.cs 프로젝트: mengtest/MMORPG-4
 public void DestroyFocoEnergiaStart()
 {
     if (null != focoEffectStart)
     {
         LoadUiResource.DestroyLoad(GameDefine.GameConstDefine.FuryStartLongPressEffect);
         focoEffectStart = null;
     }
 }
예제 #5
0
 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);
     //}
 }
예제 #7
0
 void ChangeScense()
 {
     EventCenter.RemoveListener((Int32)GameEventEnum.GameEvent_ScenseChange, ChangeScense);
     if (objTip != null)
     {
         LoadUiResource.DestroyLoad(path);
     }
 }
예제 #8
0
 void NotifyGameOver() {
     timeLimit = 0f;
     SceneGuideTaskManager.Instance().SetHasFinishedAllGuide(true);
     CGLCtrl_GameLogic.Instance.EmsgToss_FinishAllGuideToLobby();
     if (UINewsGuide.Instance != null) {
         LoadUiResource.DestroyLoad(SceneGuideTaskManager.guideUiPath);
     }
 }
예제 #9
0
 public void OnUpdate()
 {
     if (objTip != null)
     {
         TimeSpan span = GameTimeData.Instance.GetGameTime();
         if (span.TotalSeconds >= timeLimit)
         {
             LoadUiResource.DestroyLoad(path);
             objTip = null;
         }
     }
 }
예제 #10
0
        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();
        }
예제 #11
0
 void ChangeScense()
 {
     LoadUiResource.DestroyLoad(GameConstDefine.UIGuideRestPath);
 }