private void Update()
 {
     if (mKeyController != null && mKeyController.IsRSRightDown() && mStateManager.CurrentState == State.FurnitureKindsSelect)
     {
         RequestMoveStore();
     }
 }
Пример #2
0
 private void Update()
 {
     if (mKeyController != null)
     {
         if (mKeyController.IsRDown() && SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable)
         {
             OnBack();
         }
         else if (mKeyController.IsRSRightDown())
         {
             SwitchItemStore();
         }
     }
 }
Пример #3
0
 private void TopModeRun()
 {
     if (key.IsChangeIndex)
     {
         if (key.prevIndex == 4 && key.IsDownDown())
         {
             key.Index = 4;
             return;
         }
         if (key.prevIndex == 1 && key.IsUpDown())
         {
             key.Index = 1;
             return;
         }
         BannerFocusAnim(isEnable: false);
         FocusBanner = ShipStates[key.Index];
         BannerFocusAnim(isEnable: true);
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove, null);
     }
     else if (key.IsMaruDown())
     {
         GotoOrganize();
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1, null);
     }
     else if (key.IsShikakuDown())
     {
         GotoSupplyConfirm();
     }
     else if (key.IsSankakuDown() && FocusBanner.ShipModel != null)
     {
         GotoRepairConfirm();
     }
     else if (key.IsBatuDown())
     {
         BackToSailSelect();
     }
     else if (key.IsRSRightDown())
     {
         ChangeDeck(isNext: true);
     }
     else if (key.IsRSLeftDown())
     {
         ChangeDeck(isNext: false);
     }
 }
 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);
         }
     }
 }