Exemplo n.º 1
0
        // ----------------------------------------------------------------------------------------------------
        #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];
        }
Exemplo n.º 2
0
 public void UnregisterPlayer(PlayerController player)
 {
     this.UnregisterPlayer(player.PlayerType);
 }