private bool pushPractice()
 {
     if (!this.validCheck(TaskStrategyCommandMenu.MENU_NAME.ENSYU))
     {
         return(false);
     }
     this.CommandMenu.MenuExit();
     this.currentMenu = TaskStrategyCommandMenu.MENU_NAME.ENSYU;
     StrategyTaskManager.setCallBack(delegate
     {
         if (this.mUserInterfacePracticeManager != null)
         {
             Object.Destroy(this.mUserInterfacePracticeManager.get_gameObject());
             this.mUserInterfacePracticeManager = null;
         }
         StrategyTopTaskManager.Instance.GetInfoMng().updateFooterInfo(false);
         this.InfoRoot.SetActive(true);
         this.MapRoot.SetActive(true);
         this.OverView.SetActive(true);
         this.OverScene = TaskStrategyCommandMenu.Scene.NONE;
         KeyControlManager.Instance.KeyController = this.keyController;
         StrategyTopTaskManager.Instance.UIModel.MapCamera.setBlurEnable(false);
         this.CommandMenu.MenuEnter(4);
         this.keyController.Index = 4;
         StrategyTopTaskManager.Instance.GetInfoMng().MoveScreenIn(null, false, true);
         StrategyTopTaskManager.Instance.UIModel.Character.moveCharacterX(StrategyTopTaskManager.Instance.UIModel.Character.getModelDefaultPosX(), 0.4f, delegate
         {
             this.keyController.IsRun = true;
         });
         StrategyTopTaskManager.Instance.UIModel.MapCamera.setBlurEnable(false);
         StrategyTopTaskManager.Instance.TileManager.setActivePositionAnimations(true);
         this.keyController.IsRun = false;
         StrategyTopTaskManager.Instance.setActiveStrategy(true);
         StrategyTopTaskManager.Instance.UIModel.Character.SetCollisionEnable(true);
     });
     StrategyTopTaskManager.Instance.UIModel.MapCamera.setBlurEnable(true);
     this.DelayActionFrame(1, delegate
     {
         StrategyTopTaskManager.Instance.GetInfoMng().MoveScreenOut(null, false, false);
         StrategyTopTaskManager.Instance.UIModel.Character.moveCharacterX(StrategyTopTaskManager.Instance.UIModel.Character.getModelDefaultPosX() - 600f, 0.4f, delegate
         {
             this.DelayAction(0.1f, delegate
             {
                 this.mUserInterfacePracticeManager = Util.Instantiate(this.mPrefab_UserInterfacePracticeManager.get_gameObject(), this.OverView, false, false).GetComponent <UserInterfacePracticeManager>();
                 this.OverSceneObject = GameObject.Find("UIRoot");
             });
         });
         StrategyTopTaskManager.Instance.UIModel.Character.SetCollisionEnable(false);
     });
     this.OverScene = TaskStrategyCommandMenu.Scene.PRACTICE;
     StrategyTopTaskManager.Instance.setActiveStrategy(false);
     return(true);
 }
示例#2
0
 private bool pushPractice()
 {
     if (!validCheck(MENU_NAME.ENSYU))
     {
         return(false);
     }
     CommandMenu.MenuExit();
     currentMenu = MENU_NAME.ENSYU;
     StrategyTaskManager.setCallBack(delegate
     {
         if (mUserInterfacePracticeManager != null)
         {
             Object.Destroy(mUserInterfacePracticeManager.gameObject);
             mUserInterfacePracticeManager = null;
         }
         StrategyTopTaskManager.Instance.GetInfoMng().updateFooterInfo(isUpdateMaterial: false);
         InfoRoot.SetActive(true);
         MapRoot.SetActive(true);
         OverView.SetActive(true);
         OverScene = Scene.NONE;
         KeyControlManager.Instance.KeyController = keyController;
         StrategyTopTaskManager.Instance.UIModel.MapCamera.setBlurEnable(enable: false);
         CommandMenu.MenuEnter(4);
         keyController.Index = 4;
         StrategyTopTaskManager.Instance.GetInfoMng().MoveScreenIn(null, isCharacterEnter: false);
         StrategyTopTaskManager.Instance.UIModel.Character.moveCharacterX(StrategyTopTaskManager.Instance.UIModel.Character.getModelDefaultPosX(), 0.4f, delegate
         {
             keyController.IsRun = true;
         });
         StrategyTopTaskManager.Instance.UIModel.MapCamera.setBlurEnable(enable: false);
         StrategyTopTaskManager.Instance.TileManager.setActivePositionAnimations(isActive: true);
         keyController.IsRun = false;
         StrategyTopTaskManager.Instance.setActiveStrategy(isActive: true);
         StrategyTopTaskManager.Instance.UIModel.Character.SetCollisionEnable(isEnable: true);
     });
     StrategyTopTaskManager.Instance.UIModel.MapCamera.setBlurEnable(enable: true);
     this.DelayActionFrame(1, delegate
     {
         StrategyTopTaskManager.Instance.GetInfoMng().MoveScreenOut(null, isCharacterExit: false);
         StrategyTopTaskManager.Instance.UIModel.Character.moveCharacterX(StrategyTopTaskManager.Instance.UIModel.Character.getModelDefaultPosX() - 600f, 0.4f, delegate
         {
             this.DelayAction(0.1f, delegate
             {
                 mUserInterfacePracticeManager = Util.Instantiate(mPrefab_UserInterfacePracticeManager.gameObject, OverView).GetComponent <UserInterfacePracticeManager>();
                 OverSceneObject = GameObject.Find("UIRoot");
             });
         });
         StrategyTopTaskManager.Instance.UIModel.Character.SetCollisionEnable(isEnable: false);
     });
     OverScene = Scene.PRACTICE;
     StrategyTopTaskManager.Instance.setActiveStrategy(isActive: false);
     return(true);
 }
 private void OnDestroy()
 {
     this.ENSEI          = null;
     this.EscortOrganize = null;
     this.mPrefab_UserInterfacePracticeManager = null;
     this.mUserInterfacePracticeManager        = null;
     this.sttm                = null;
     this.sailSelect          = null;
     this.CommandMenu         = null;
     this.LogicMng            = null;
     this.ShipNumberLabel     = null;
     this.areaModel           = null;
     this.warningPanel        = null;
     this.InfoRoot            = null;
     this.MapRoot             = null;
     this.OverView            = null;
     this.OverSceneObject     = null;
     this.StopExpeditionPanel = null;
     this.keyController       = null;
     this.SwipeEvent          = null;
     this.StopExpeditionPanel = null;
 }
示例#4
0
 private void OnDestroy()
 {
     ENSEI          = null;
     EscortOrganize = null;
     mPrefab_UserInterfacePracticeManager = null;
     mUserInterfacePracticeManager        = null;
     sttm                = null;
     sailSelect          = null;
     CommandMenu         = null;
     LogicMng            = null;
     ShipNumberLabel     = null;
     areaModel           = null;
     warningPanel        = null;
     InfoRoot            = null;
     MapRoot             = null;
     OverView            = null;
     OverSceneObject     = null;
     StopExpeditionPanel = null;
     keyController       = null;
     SwipeEvent          = null;
     StopExpeditionPanel = null;
 }