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