示例#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);
 }
示例#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);
 }
示例#3
0
 private void DisableInputControls()
 {
     //	Stop Listening Input Events
     PlayerInputHandler.EnableInputControl(PlayerInputControls.ActionType.Fire, false);
     PlayerInputHandler.StopListening(PlayerInputControls.ActionType.Fire, OnHandleFireEvent);
 }
示例#4
0
 private void EnableInputControls()
 {
     //	Suscribe to Input Events
     PlayerInputHandler.EnableInputControl(PlayerInputControls.ActionType.Fire, true);
     PlayerInputHandler.StartListening(PlayerInputControls.ActionType.Fire, OnHandleFireEvent);
 }