Beispiel #1
0
 public override void OnUpArrow()
 {
     if (currentState == State.MAIN)
     {
         mainButtons.Move(-1);
         menuMoveEvent.Invoke();
     }
     else if (currentState == State.CONTROLS)
     {
         if (howTo.Move(-1))
         {
             menuMoveEvent.Invoke();
         }
     }
     else if (currentState == State.LOAD)
     {
         saveFileController.Move(-1);
         menuMoveEvent.Invoke();
     }
     else if (currentState == State.OPTIONS)
     {
         optionsController.MoveVertical(-1);
         menuMoveEvent.Invoke();
     }
 }
Beispiel #2
0
 public override void OnUpArrow()
 {
     if (!isPrompt)
     {
         saveFileController.Move(-1);
         menuMoveEvent.Invoke();
     }
 }