private bool pushDeploy()
        {
            if (!this.validCheck(TaskStrategyCommandMenu.MENU_NAME.DEPLOY))
            {
                return(false);
            }
            this.keyController.IsRun = false;
            this.CommandMenu.MenuExit();
            this.currentMenu = TaskStrategyCommandMenu.MENU_NAME.DEPLOY;
            StrategyTopTaskManager.ReqMode(StrategyTopTaskManager.StrategyTopTaskManagerMode.Deploy);
            Transform transform = StrategyTopTaskManager.Instance.UIModel.OverView.FindChild("Deploy");

            StrategyTopTaskManager.Instance.GetInfoMng().MoveScreenOut(null, false, false);
            StrategyTaskManager.setCallBack(delegate
            {
                StrategyTopTaskManager.Instance.UIModel.Character.get_transform().set_localPosition(StrategyTopTaskManager.Instance.UIModel.Character.getExitPosition());
                StrategyTopTaskManager.Instance.UIModel.Character.isEnter = false;
                StrategyTopTaskManager.Instance.GetInfoMng().MoveScreenIn(null, true, false);
                this.keyController.IsRun = true;
            });
            if (StrategyTopTaskManager.Instance.TutorialGuide9_1 != null)
            {
                if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null)
                {
                    SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().HideAndDestroy();
                }
                StrategyTopTaskManager.Instance.TutorialGuide9_1.HideAndDestroy();
            }
            this.sceneChange = false;
            return(true);
        }
 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);
 }
Esempio n. 3
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 bool pushExpedition()
        {
            if (SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.MissionState == MissionStates.NONE)
            {
                if (!this.validCheck(TaskStrategyCommandMenu.MENU_NAME.ENSEI))
                {
                    return(false);
                }
                this.CommandMenu.MenuExit();
                this.currentMenu = TaskStrategyCommandMenu.MENU_NAME.ENSEI;
                StrategyTaskManager.setCallBack(delegate
                {
                    StrategyTopTaskManager.Instance.GetInfoMng().updateFooterInfo(false);
                    StrategyTopTaskManager.Instance.GetInfoMng().updateUpperInfo();
                    this.InfoRoot.SetActive(true);
                    this.MapRoot.SetActive(true);
                    this.OverView.SetActive(true);
                    this.OverScene = TaskStrategyCommandMenu.Scene.NONE;
                    KeyControlManager.Instance.KeyController = this.keyController;
                    this.CommandMenu.MenuEnter(3);
                    StrategyTopTaskManager.Instance.UIModel.UIMapManager.ShipIconManager.setShipIconsState();
                    StrategyTopTaskManager.Instance.UIModel.Character.setState(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck);
                    StrategyTopTaskManager.Instance.setActiveStrategy(true);
                    SingletonMonoBehaviour <Live2DModel> .Instance.Enable();
                });
                SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate
                {
                    this.InfoRoot.SetActive(false);
                    this.OverView.SetActive(false);
                    GameObject gameObject = Object.Instantiate <GameObject>(this.ENSEI);
                    gameObject.get_transform().positionX(999f);
                });

                this.OverSceneObject = GameObject.Find("UIRoot");
                this.OverScene       = TaskStrategyCommandMenu.Scene.EXPEDISION;
                StrategyTopTaskManager.Instance.setActiveStrategy(false);
                SingletonMonoBehaviour <Live2DModel> .Instance.Disable();
            }
            else
            {
                this.StopExpeditionPanel = Util.Instantiate(this.ENSEI_Cancel, this.OverView, false, false).GetComponent <StopExpedition>();
                MissionManager missionMng = new MissionManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID);
                this.StopExpeditionPanel.StartPanel(missionMng);
            }
            return(true);
        }