Пример #1
0
 private void Update()
 {
     if (mKeyController != null && mKeyController.IsLDown())
     {
         mIsShortCutPlayMode = !mIsShortCutPlayMode;
         if (mIsShortCutPlayMode)
         {
             ShowShortCutStateView();
         }
         else
         {
             HideShortCutStateView();
         }
     }
 }
Пример #2
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();
     }
 }
Пример #3
0
 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();
     }
 }
 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();
         }
     }
 }