示例#1
0
 protected override bool Run()
 {
     if (!isInit)
     {
         Init();
         isInit = true;
     }
     Main.Update();
     if (isEnd)
     {
         if (TaskOrganizeTop.changeState == "detail")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Detail);
         }
         else if (TaskOrganizeTop.changeState == "list")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List);
         }
         isEnd = false;
         return(false);
     }
     if (!base.isControl)
     {
         return(true);
     }
     if (TaskOrganizeTop.controlState != null && StateControllerDic.ContainsKey(TaskOrganizeTop.controlState))
     {
         return(StateControllerDic[TaskOrganizeTop.controlState]());
     }
     return(true);
 }
 protected override bool Run()
 {
     if (isEnd)
     {
         if (changeState == "list")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List);
         }
         else if (changeState == "top")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Phase_ST);
         }
         return(false);
     }
     if (TaskOrganizeListDetail.KeyController.IsLeftDown())
     {
         if (!ship.IsLocked())
         {
             detailManager.buttons.LockSwitch.MoveLockBtn();
         }
     }
     else if (TaskOrganizeListDetail.KeyController.IsRightDown())
     {
         if (ship.IsLocked())
         {
             detailManager.buttons.LockSwitch.MoveLockBtn();
         }
     }
     else if (TaskOrganizeListDetail.KeyController.IsShikakuDown())
     {
         detailManager.buttons.LockSwitch.MoveLockBtn();
     }
     else if (TaskOrganizeListDetail.KeyController.IsMaruDown())
     {
         if (!isEnd)
         {
             ChangeButtonEL(null);
         }
     }
     else if (TaskOrganizeListDetail.KeyController.IsBatuDown())
     {
         BackDataEL(null);
     }
     else if (TaskOrganizeListDetail.KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize();
     }
     return(true);
 }
 protected override bool Run()
 {
     if (!this.isInit)
     {
         this.Init();
         this.isInit = true;
     }
     Main.Update();
     if (this.isEnd)
     {
         if (TaskOrganizeTop.changeState == "detail")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Detail);
         }
         else if (TaskOrganizeTop.changeState == "list")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List);
         }
         this.isEnd = false;
         return(false);
     }
     return(!base.isControl || TaskOrganizeTop.controlState == null || !this.StateControllerDic.ContainsKey(TaskOrganizeTop.controlState) || this.StateControllerDic.get_Item(TaskOrganizeTop.controlState)());
 }
 protected override bool Run()
 {
     isShowFrame = false;
     if (isEnd)
     {
         if (changeState == "listDetail")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.ListDetail);
         }
         else if (changeState == "detail")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Detail);
         }
         else if (changeState == "top")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Phase_ST);
         }
         isEnd = false;
         Debug.Log("deff");
         return(false);
     }
     TaskOrganizeList.KeyController.Update();
     if (!TaskOrganizeList.KeyController.IsShikakuDown())
     {
         if (TaskOrganizeList.KeyController.IsBatuDown())
         {
             changeState = "top";
             isEnd       = true;
             BackListEL(null);
         }
         else if (TaskOrganizeList.KeyController.IsRDown())
         {
             SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize();
         }
     }
     return(true);
 }
示例#5
0
 protected override bool Run()
 {
     if (this.isEnd)
     {
         if (this.changeState == "top")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Phase_ST);
         }
         else if (this.changeState == "list")
         {
             EscortOrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List);
         }
         return(false);
     }
     if (TaskOrganizeDetail.KeyController.IsLeftDown())
     {
         this.detailManager.buttons.UpdateButton(true, null);
     }
     else if (TaskOrganizeDetail.KeyController.IsRightDown())
     {
         this.detailManager.buttons.UpdateButton(false, null);
     }
     else if (TaskOrganizeDetail.KeyController.IsMaruDown())
     {
         this.detailManager.buttons.Decide();
     }
     else if (TaskOrganizeDetail.KeyController.IsBatuDown())
     {
         this.BackMaskEL(null);
     }
     else if (TaskOrganizeDetail.KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize();
     }
     return(true);
 }