private void Update()
 {
     if (mKeyController != null)
     {
         if (mKeyController.keyState[14].down)
         {
             ChangeFocusButton(mButton_ShipAlbum);
         }
         else if (mKeyController.keyState[10].down)
         {
             ChangeFocusButton(mButton_SlotItemAlbum);
         }
         else if (mKeyController.keyState[1].down)
         {
             OnSelectCurrentFocus();
         }
         else if (mKeyController.IsRDown())
         {
             SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
         }
         else if (mKeyController.IsBatuDown())
         {
             SingletonMonoBehaviour <PortObjectManager> .Instance.BackToActiveScene();
         }
     }
 }
 protected override bool Run()
 {
     isShowFrame = false;
     if (isEnd)
     {
         if (changeState == "listDetail")
         {
             OrganizeTaskManager.Instance.GetTopTask()._state2 = TaskOrganizeTop.OrganizeState.DetailList;
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.ListDetail);
         }
         else if (changeState == "detail")
         {
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Detail);
         }
         else if (changeState == "top")
         {
             OrganizeTaskManager.Instance.GetTopTask()._state2 = TaskOrganizeTop.OrganizeState.Top;
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Phase_ST);
         }
         isEnd = false;
         return(false);
     }
     if (Input.touchCount == 0)
     {
         KeyController.Update();
     }
     if (KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
     return(true);
 }
 private void Update()
 {
     if (mFocusKeyController != null)
     {
         if (mFocusKeyController.IsRDown() && SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable)
         {
             SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize();
         }
         mFocusKeyController.Update();
     }
 }
 private void Update()
 {
     if (mKeyController != null)
     {
         if (mKeyController.IsRDown() && SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable)
         {
             OnBack();
         }
         else if (mKeyController.IsRSRightDown())
         {
             SwitchItemStore();
         }
     }
 }
Beispiel #5
0
 private void Update()
 {
     if (mFocusKeyController != null)
     {
         mFocusKeyController.Update();
         if (mFocusKeyController.IsRDown() && SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable)
         {
             mFocusKeyController.ClearKeyAll();
             mFocusKeyController.firstUpdate = true;
             mFocusKeyController             = null;
             SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
         }
     }
 }
Beispiel #6
0
 protected override bool Run()
 {
     if (isEnd)
     {
         if (changeState == "list")
         {
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List);
         }
         else if (changeState == "top")
         {
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Phase_ST);
         }
         return(false);
     }
     if (KeyController.IsLeftDown())
     {
         if (!ship.IsLocked())
         {
             detailManager.buttons.LockSwitch.MoveLockBtn();
         }
     }
     else if (KeyController.IsRightDown())
     {
         if (ship.IsLocked())
         {
             detailManager.buttons.LockSwitch.MoveLockBtn();
         }
     }
     else if (KeyController.IsShikakuDown())
     {
         detailManager.buttons.LockSwitch.MoveLockBtn();
     }
     else if (KeyController.IsMaruDown())
     {
         if (!isEnd)
         {
             ChangeButtonEL(null);
         }
     }
     else if (KeyController.IsBatuDown())
     {
         BackDataEL(null);
     }
     if (KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
     return(true);
 }
Beispiel #7
0
 private void Update()
 {
     if (mKeyController == null)
     {
         return;
     }
     if (mKeyController.keyState[14].down)
     {
         ChangeFocus(mButton_Negative);
     }
     else if (mKeyController.keyState[10].down)
     {
         int num = Array.IndexOf(mButtonFocasable, mButton_Positive);
         if (0 <= num)
         {
             ChangeFocus(mButton_Positive);
         }
     }
     else if (mKeyController.keyState[1].down)
     {
         mKeyController.ClearKeyAll();
         mKeyController.firstUpdate = true;
         if (mButton_Negative.Equals(mButtonCurrentFocus))
         {
             OnClickNegative();
         }
         else if (mButton_Positive.Equals(mButtonCurrentFocus))
         {
             OnClickPositive();
         }
     }
     else if (mKeyController.keyState[0].down)
     {
         OnClickNegative();
     }
     else if (mKeyController.IsRDown())
     {
         OnRequestChangeScene();
     }
     else if (mKeyController.IsLDown())
     {
         OnRequestBackToRoot();
     }
 }
 private void Update()
 {
     if (mKeyController == null)
     {
         return;
     }
     if (mKeyController.keyState[14].down)
     {
         ChangeFocus(mButton_Positive);
     }
     else if (mKeyController.keyState[10].down)
     {
         ChangeFocus(mButton_Negative);
     }
     else if (mKeyController.keyState[1].down)
     {
         if (mFocusButton != null)
         {
             if (mFocusButton.Equals(mButton_Negative))
             {
                 SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
                 ClickNegativeEvent();
             }
             else if (mFocusButton.Equals(mButton_Positive))
             {
                 SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
                 ClickPositiveEvent();
             }
         }
     }
     else if (mKeyController.keyState[0].down)
     {
         ClickNegativeEvent();
     }
     else if (mKeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
     else if (mKeyController.IsLDown())
     {
         ClickNegativeEvent();
     }
 }
Beispiel #9
0
 private void Update()
 {
     if (mKeyController == null)
     {
         return;
     }
     if (mKeyController.keyState[14].down)
     {
         int num  = Array.IndexOf(mButtons_Focasable, mButtonManager.nowForcusButton);
         int num2 = num - 1;
         if (0 <= num2)
         {
             ChangeFocusButton(mButtons_Focasable[num2], needSe: true);
         }
     }
     else if (mKeyController.keyState[10].down)
     {
         int num3 = Array.IndexOf(mButtons_Focasable, mCurrentFocusButton);
         int num4 = num3 + 1;
         if (num4 < mButtons_Focasable.Length)
         {
             ChangeFocusButton(mButtons_Focasable[num4], needSe: true);
         }
     }
     else if (mKeyController.keyState[1].down)
     {
         OnSelectCircleButton();
     }
     else if (mKeyController.keyState[0].down)
     {
         OnBack();
     }
     else if (mKeyController.IsRDown())
     {
         if ((UnityEngine.Object)mVoiceAudioSource != null)
         {
             mVoiceAudioSource.Stop();
         }
         mVoiceAudioSource = null;
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
 }
        private void Update()
        {
            if (mKeyController == null)
            {
                return;
            }
            if (mKeyController.keyState[14].down)
            {
                if (mIsShown)
                {
                    ChangeFocus(SelectType.Arsenal);
                }
            }
            else if (mKeyController.keyState[10].down)
            {
                if (mIsShown)
                {
                    ChangeFocus(SelectType.Revamp);
                }
            }
            else if (mKeyController.keyState[1].down)
            {
                if (mOnArsenaltypeSelectListener != null && mIsShown && !DOTween.IsTweening(this))
                {
                    SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
                    mOnArsenaltypeSelectListener(mSelectType);
                    mKeyController = null;
                }
            }
            else if (mKeyController.keyState[0].down)
            {
                SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPort();
            }
            else if (mKeyController.IsRDown() && SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable)
            {
                SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();

                mKeyController = null;
            }
        }
 protected override bool Run()
 {
     if (isEnd)
     {
         if (changeState == "top")
         {
             OrganizeTaskManager.Instance.GetTopTask()._state2 = TaskOrganizeTop.OrganizeState.Top;
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Phase_ST);
         }
         else if (changeState == "list")
         {
             OrganizeTaskManager.Instance.GetTopTask()._state2 = TaskOrganizeTop.OrganizeState.List;
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List);
         }
         return(false);
     }
     if (KeyController.IsLeftDown())
     {
         detailManager.buttons.UpdateButton(isLeft: true);
     }
     else if (KeyController.IsRightDown())
     {
         detailManager.buttons.UpdateButton(isLeft: false);
     }
     else if (KeyController.IsMaruDown())
     {
         detailManager.buttons.Decide();
     }
     else if (KeyController.IsBatuDown())
     {
         BackMaskEL(null);
     }
     if (KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
     return(true);
 }
 protected override void OnUpdate()
 {
     if (mKeyController != null)
     {
         if (mKeyController.keyState[8].down)
         {
             PrevFocus();
         }
         else if (mKeyController.keyState[12].down)
         {
             NextFocus();
         }
         else if (mKeyController.keyState[14].down)
         {
             PrevPageOrHeadFocus();
         }
         else if (mKeyController.keyState[10].down)
         {
             NextPageOrTailFocus();
         }
         else if (mKeyController.keyState[1].down)
         {
             Select();
         }
         else if (mKeyController.keyState[0].down)
         {
             OnBack();
         }
         else if (mKeyController.IsRDown())
         {
             OnRequestChangeScene();
         }
         else if (mKeyController.IsLDown())
         {
             OnRequestBackToRoot();
         }
     }
 }
Beispiel #13
0
 private void Update()
 {
     if (!needUpdate)
     {
         return;
     }
     _set_arrow();
     if (!_firstUpdate)
     {
         _firstUpdate = false;
         base.gameObject.transform.localScale = Vector3.one;
     }
     if (ItemSelectController != null)
     {
         ItemSelectController.Update();
     }
     if (ItemSelectController.keyState[8].down)
     {
         Pressed_Button_L(null);
     }
     if (ItemSelectController.keyState[12].down)
     {
         Pressed_Button_R(null);
     }
     if (ItemSelectController.IsRDown())
     {
         _Xpressed  = true;
         needUpdate = false;
         if (_isScene)
         {
             GoToStrategy();
         }
     }
     else if (ItemSelectController.IsBatuDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToActiveScene();
     }
 }
Beispiel #14
0
        private void Update()
        {
            if (key == null)
            {
                return;
            }
            float axisRaw  = Input.GetAxisRaw("Left Stick Horizontal");
            float axisRaw2 = Input.GetAxisRaw("Left Stick Vertical");

            if (key.keyState[16].press || key.keyState[23].press || key.keyState[17].press)
            {
                MenuCamera.orthographicSize     -= 0.3f * Time.deltaTime;
                InteriorCamera.orthographicSize -= 0.3f * Time.deltaTime;
            }
            else if (key.keyState[20].press || key.keyState[21].press || key.keyState[19].press)
            {
                MenuCamera.orthographicSize     += 0.3f * Time.deltaTime;
                InteriorCamera.orthographicSize += 0.3f * Time.deltaTime;
            }
            else if (key.IsRDown())
            {
                SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
            }
            else
            {
                if (key.IsSankakuDown())
                {
                    key.ClearKeyAll();
                    key.firstUpdate = true;
                    ExitMode();
                    return;
                }
                if (axisRaw == 0f && axisRaw2 == 0f)
                {
                    if (key.keyState[10].press)
                    {
                        character.transform.AddLocalPositionX(250f * Time.deltaTime);
                        Vector3 localPosition = character.transform.localPosition;
                        if (localPosition.x > 400f)
                        {
                            character.transform.localPositionX(400f);
                        }
                    }
                    else if (key.keyState[14].press)
                    {
                        character.transform.AddLocalPositionX(-250f * Time.deltaTime);
                        Vector3 localPosition2 = character.transform.localPosition;
                        if (localPosition2.x < -400f)
                        {
                            character.transform.localPositionX(-400f);
                        }
                    }
                }
            }
            if (key.keyState[8].press)
            {
                float   num        = -0.1f * Time.deltaTime;
                Vector3 localScale = character.transform.localScale;
                if (localScale.x + num > 1.1f)
                {
                    character.transform.AddLocalScale(num, num, num);
                    character.transform.AddLocalPositionY((float)character.render.height * (0f - num) / 4f);
                }
            }
            else if (key.keyState[12].press)
            {
                float   num2        = 0.1f * Time.deltaTime;
                float   num3        = 0.5f * (float)character.shipModel.Lov / 1000f;
                Vector3 localScale2 = character.transform.localScale;
                if (localScale2.x + num2 < 1.1f + num3)
                {
                    character.transform.AddLocalScale(num2, num2, num2);
                    character.transform.AddLocalPositionY((float)character.render.height * (0f - num2) / 4f);
                }
            }
            MenuCamera.transform.AddPosX(axisRaw * Time.deltaTime);
            MenuCamera.transform.AddPosY((0f - axisRaw2) * Time.deltaTime);
            InteriorCamera.transform.AddPosX(axisRaw * Time.deltaTime);
            InteriorCamera.transform.AddPosY((0f - axisRaw2) * Time.deltaTime);
            FixSize(MenuCamera);
            FixSize(InteriorCamera);
            FixPosition(MenuCamera);
            FixPosition(InteriorCamera);
        }
Beispiel #15
0
 protected bool StateKeyControl_Banner()
 {
     if (_isDragDrop)
     {
         return(true);
     }
     deckSwitchManager.keyControlEnable = true;
     if (KeyController.IsMaruDown())
     {
         _bannerManager[BannerIndex - 1].DetailEL(null);
         return(true);
     }
     if (KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
     else if (KeyController.IsBatuDown())
     {
         BackToPort();
     }
     else if (KeyController.IsShikakuDown())
     {
         AllUnsetBtnEL();
     }
     else if (KeyController.IsDownDown())
     {
         BannerIndex += 2;
         if (BannerIndex >= 7)
         {
             BannerIndex -= 6;
         }
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         UpdateChangeBanner();
     }
     else if (KeyController.IsUpDown())
     {
         BannerIndex -= 2;
         if (BannerIndex <= 0)
         {
             BannerIndex += 6;
         }
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         UpdateChangeBanner();
     }
     else if (KeyController.IsLeftDown())
     {
         BannerIndex--;
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         if (BannerIndex == 0)
         {
             if (IsTenderBtn() || IsAllUnsetBtn())
             {
                 SystemIndex = ((!IsTenderBtn()) ? 1 : 0);
             }
             else
             {
                 SystemIndex = 2;
             }
             UpdateSystemButtons();
             OrganizeTaskManager.Instance.GetTopTask().setControlState();
         }
         UpdateChangeBanner();
     }
     else if (KeyController.IsRightDown())
     {
         if (BannerIndex >= 6)
         {
             return(true);
         }
         BannerIndex++;
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         for (int i = 0; i < 6; i++)
         {
             bool enabled = (BannerIndex - 1 == i) ? true : false;
             _bannerManager[i].UpdateBanner(enabled);
         }
     }
     return(true);
 }
Beispiel #16
0
        private void HandleKeyController()
        {
            ScreenStatus screenStatus = status;

            if ((screenStatus == ScreenStatus.SELECT_DECK_SHIP || screenStatus == ScreenStatus.SELECT_OTHER_SHIP) && mKeyController.IsBatuDown())
            {
                Back2PortTop();
            }
            if (status != ScreenStatus.MODE_KINDAIKA_KAISHU_ANIMATION && status != ScreenStatus.MODE_KAIZO_ANIMATION && mKeyController.IsRDown())
            {
                SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
            }
        }
 private void Update()
 {
     if (mKeyController == null)
     {
         return;
     }
     if (mKeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
     else if (mKeyController.IsRSLeftDown())
     {
         PrevPage();
     }
     else if (mKeyController.IsRSRightDown())
     {
         NextPage();
     }
     else if (mKeyController.keyState[0].down)
     {
         OnBack();
     }
     else if (mKeyController.keyState[1].down)
     {
         OnSelectedListItemListener(mCurrentFocusListItem);
     }
     else if (mKeyController.keyState[14].down)
     {
         int num  = Array.IndexOf(mUISlotItemAlbumListItems, mCurrentFocusListItem);
         int num2 = num - 1;
         if (0 <= num2)
         {
             UISlotItemAlbumListItem target = mUISlotItemAlbumListItems[num2];
             ChangeFocus(target, needSe: true);
         }
     }
     else if (mKeyController.keyState[10].down)
     {
         int num3 = Array.IndexOf(mUISlotItemAlbumListItems, mCurrentFocusListItem);
         int num4 = num3 + 1;
         if (num4 < mUISlotItemAlbumListItems.Length)
         {
             UISlotItemAlbumListItem target2 = mUISlotItemAlbumListItems[num4];
             ChangeFocus(target2, needSe: true);
         }
     }
     else if (mKeyController.keyState[8].down)
     {
         int num5 = Array.IndexOf(mUISlotItemAlbumListItems, mCurrentFocusListItem);
         int num6 = num5 - 5;
         if (0 <= num6)
         {
             UISlotItemAlbumListItem target3 = mUISlotItemAlbumListItems[num6];
             ChangeFocus(target3, needSe: true);
         }
     }
     else if (mKeyController.keyState[12].down)
     {
         int num7 = Array.IndexOf(mUISlotItemAlbumListItems, mCurrentFocusListItem);
         int num8 = num7 + 5;
         if (num8 < mUISlotItemAlbumListItems.Length)
         {
             UISlotItemAlbumListItem target4 = mUISlotItemAlbumListItems[num8];
             ChangeFocus(target4, needSe: true);
         }
     }
 }
Beispiel #18
0
        private void Update()
        {
            if (mFocusKeyController != null)
            {
                mFocusKeyController.Update();
                if (SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable && mFocusKeyController.IsRDown())
                {
                    SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();

                    mFocusKeyController = null;
                }
            }
        }
Beispiel #19
0
        private void Update()
        {
            if (!_isStartUpDone || !rep.isFadeDone())
            {
                StartUP();
            }
            if (!_isStartUpDone || _HOLT)
            {
                return;
            }
            int index = dockSelectController.Index;

            dockSelectController.Update();
            if (dockSelectController.IsRDown())
            {
                SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
            }
            if (rep.now_mode() != 1)
            {
                dockSelectController.Index = index;
                return;
            }
            if (dockSelectController.keyState[8].down)
            {
            }
            if (dockSelectController.keyState[12].down)
            {
            }
            if (bd2.get_board2_anime() || dia2.get_dialog2_anime() || dia.get_dialog_anime())
            {
                return;
            }
            if (!_isBtnMaruUp && (dockSelectController.keyState[1].up || !dockSelectController.keyState[1].down))
            {
                _isBtnMaruUp = true;
                return;
            }
            if (rep.first_change())
            {
                UISelectedObject.SelectedObjectBlink(dock_cursor, dockSelectController.Index);
                btnLights(Play: false, force: true);
                return;
            }
            if (dockSelectController.IsChangeIndex)
            {
                UISelectedObject.SelectedObjectBlink(dock_cursor, dockSelectController.Index);
                SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
            }
            for (int i = 0; i < dock_cursor.Length; i++)
            {
                if (_clsRepair.Material.RepairKit <= 0 || now_kit <= 0)
                {
                    repair_btn[i].GetComponent <UISprite>().spriteName = "btn_quick_off";
                    btnLights(Play: false);
                }
                else
                {
                    btnLights(Play: true);
                    if (dockSelectController.Index == i)
                    {
                        if (!get_HS_anime(i))
                        {
                            repair_btn[i].GetComponent <UISprite>().spriteName = "btn_quick_on";
                        }
                    }
                    else if (!get_HS_anime(i))
                    {
                        repair_btn[i].GetComponent <UISprite>().spriteName = "btn_quick";
                    }
                }
                if (dockSelectController.Index == i)
                {
                    label1_obj[i].GetComponent <UILabel>().effectColor = TextShadowLight;
                    label2_obj[i].GetComponent <UILabel>().effectColor = TextShadowLight;
                    label3_obj[i].GetComponent <UILabel>().effectColor = TextShadowLight;
                }
                else
                {
                    label1_obj[i].GetComponent <UILabel>().effectColor = Color.white;
                    label2_obj[i].GetComponent <UILabel>().effectColor = Color.white;
                    label3_obj[i].GetComponent <UILabel>().effectColor = Color.white;
                }
            }
            if (dockSelectController.IsChangeIndex)
            {
                UISelectedObject.SelectedObjectBlink(dock_cursor, dockSelectController.Index);
                for (int j = 0; j < dock_cursor.Length; j++)
                {
                    if (_clsRepair.Material.RepairKit <= 0 || now_kit <= 0)
                    {
                        repair_btn[j].GetComponent <UISprite>().spriteName = "btn_quick_off";
                        btnLights(Play: false);
                    }
                    else
                    {
                        btnLights(Play: true);
                        if (dockSelectController.Index == j)
                        {
                            if (!get_HS_anime(j))
                            {
                                repair_btn[j].GetComponent <UISprite>().spriteName = "btn_quick_on";
                            }
                        }
                        else if (!get_HS_anime(j))
                        {
                            repair_btn[j].GetComponent <UISprite>().spriteName = "btn_quick";
                        }
                    }
                    if (dockSelectController.Index == j)
                    {
                        label1_obj[j].GetComponent <UILabel>().effectColor = new Color(0.63f, 0.91f, 1f);
                        label2_obj[j].GetComponent <UILabel>().effectColor = new Color(0.63f, 0.91f, 1f);
                    }
                    else
                    {
                        label1_obj[j].GetComponent <UILabel>().effectColor = Color.white;
                        label2_obj[j].GetComponent <UILabel>().effectColor = Color.white;
                    }
                }
                for (int k = 0; k < _clsRepair.MapArea.NDockMax; k++)
                {
                    if (_clsRepair.MapArea.NDockCount == dockSelectController.Index)
                    {
                        int num = k;
                        GameObject.Find("board1_top/board/Grid/0" + num.ToString() + "/Shutter/BGKey").GetComponent <UISprite>().spriteName = "btn_addDock_on";
                    }
                    else
                    {
                        int num2 = k;
                        GameObject.Find("board1_top/board/Grid/0" + num2.ToString() + "/Shutter/BGKey").GetComponent <UISprite>().spriteName = "btn_addDock";
                    }
                }
            }
            if (dockSelectController.Index < _clsRepair.GetDocks().Length)
            {
                if (_clsRepair.GetDockData(dockSelectController.Index).ShipId != 0)
                {
                    _go_kosoku = 1;
                }
                else
                {
                    _go_kosoku = 0;
                }
            }
            if (dockSelectController.keyState[0].down)
            {
                back_to_port();
            }
            else if (dockSelectController.keyState[1].down && _isBtnMaruUp)
            {
                _isBtnMaruUp = false;
                now_dock     = dockSelectController.Index;
                if (_clsRepair.Material.RepairKit <= 0)
                {
                    now_kit = -1;
                }
                dock_selected(dockSelectController.Index);
            }
            else if (dockSelectController.keyState[5].down)
            {
                SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
            }
        }
        private void Update()
        {
            if (mKeyController != null)
            {
                mKeyController.Update();
                if (SingletonMonoBehaviour <UIShortCutMenu> .Instance != null && SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable && mKeyController.IsRDown())
                {
                    mKeyController.ClearKeyAll();
                    mKeyController.firstUpdate = true;
                    SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize();

                    mKeyController = null;
                }
            }
        }