// ---------------------------------------------------------------------------------------------------- #endregion #region Initialization // ---------------------------------------------------------------------------------------------------- private void Awake() { this.axisHorizontal = ReInput.mapping.GetActionId("Horizontal"); this.axisVertical = ReInput.mapping.GetActionId("Vertical"); this.actionInteract = ReInput.mapping.GetActionId("Interact"); this.playerController = this.GetComponent <PlayerController>(); this.playerStateController = this.GetComponent <PlayerStateController>(); this.movementController = this.GetComponent <MovementController>(); this.player = ReInput.players.Players[0]; }
public void UnregisterPlayer(PlayerController player) { this.UnregisterPlayer(player.PlayerType); }