//This is called from the GameManager; when the game is being setup.
    public void SetupPlayer(int newPlayerID)
    {
        playerID = newPlayerID;

        currentControlScheme = playerInput.currentControlScheme;

        playerMovementBehaviour.SetupBehaviour();
        playerAnimationBehaviour.SetupBehaviour();
        playerVisualsBehaviour.SetupBehaviour(playerID, playerInput);
    }
Example #2
0
        //This is called from the GameManager; when the game is being setup.
        public void SetupPlayer(int newPlayerId)
        {
            _playerId = newPlayerId;

            _currentControlScheme = playerInput.currentControlScheme;

            playerMovementBehaviour.SetupBehaviour();
            playerAnimationBehaviour.SetupBehaviour();
            GetCamera();
        }