Esempio n. 1
0
 public void DisableInputControls()
 {
     PlayerInputHandler.EnableInputControl(PlayerInputControls.ActionType.Thurst, false);
     PlayerInputHandler.EnableInputControl(PlayerInputControls.ActionType.Turn, false);
     PlayerInputHandler.StopListening(PlayerInputControls.ActionType.Thurst, OnHandleThurstAction);
     PlayerInputHandler.StopListening(PlayerInputControls.ActionType.Turn, OnHandleTurnAction);
 }
Esempio n. 2
0
 public void EnableInputControls()
 {
     PlayerInputHandler.EnableInputControl(PlayerInputControls.ActionType.Thurst, true);
     PlayerInputHandler.EnableInputControl(PlayerInputControls.ActionType.Turn, true);
     PlayerInputHandler.StartListening(PlayerInputControls.ActionType.Thurst, OnHandleThurstAction);
     PlayerInputHandler.StartListening(PlayerInputControls.ActionType.Turn, OnHandleTurnAction);
 }
Esempio n. 3
0
 private void DisableInputControls()
 {
     //	Stop Listening Input Events
     PlayerInputHandler.EnableInputControl(PlayerInputControls.ActionType.Fire, false);
     PlayerInputHandler.StopListening(PlayerInputControls.ActionType.Fire, OnHandleFireEvent);
 }
Esempio n. 4
0
 private void EnableInputControls()
 {
     //	Suscribe to Input Events
     PlayerInputHandler.EnableInputControl(PlayerInputControls.ActionType.Fire, true);
     PlayerInputHandler.StartListening(PlayerInputControls.ActionType.Fire, OnHandleFireEvent);
 }