protected override void Start()
 {
     this.OverScene     = TaskStrategyCommandMenu.Scene.NONE;
     this.keyController = new KeyControl(0, 0, 0.4f, 0.1f);
     this.keyController.setChangeValue(-1f, 0f, 1f, 0f);
     this.keyController.KeyInputInterval = 0.2f;
     this.CommandMenu.Init(this.keyController);
     this.currentMenu      = TaskStrategyCommandMenu.MENU_NAME.SALLY;
     this.sailSelect       = StrategyTopTaskManager.GetSailSelect();
     this.isInfoOpenEnable = 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);
 }
        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);
        }