Example #1
0
 public void OnCancel(InputAction.CallbackContext context)
 {
     if (context.started)
     {
         menuScript.Call();
         UpdateActionMap("Gameplay");
     }
 }
Example #2
0
 public void OnMenu(InputAction.CallbackContext context)
 {
     if (actionsManager.ActionIsAvailable(ActionsManager.Actions.Menu))
     {
         if (context.started)
         {
             menuScript.Call();
             UpdateActionMap("Menu");
         }
     }
 }
Example #3
0
 public override void Call()
 {
     menuScript.Call();
     UpdateActionMap();
 }