예제 #1
0
 private void HandleArrowKeyPresses()
 {
     if (Input.GetKeyDown(KeyCode.UpArrow))
     {
         SelectedAction = SelectedAction.Next();
     }
     if (Input.GetKeyDown(KeyCode.DownArrow))
     {
         SelectedAction = SelectedAction.Previous();
     }
 }
예제 #2
0
 private void HandleScrolling()
 {
     if (ScrollingUp)
     {
         SelectedAction = SelectedAction.Next();
     }
     if (ScrollingDown)
     {
         SelectedAction = SelectedAction.Previous();;
     }
 }