Game/Assets/Scripts/Player/Player_Animation.cs
/// <summary>
/// Called when the object is created
/// </summary>
Called when the object is created
Called when the object is created
protected override void Start()
    {
        if (!isLocalPlayer) return;
        _parentMoveScript = GetComponent<Player_Control>();                             
        _playerAnimator = GetComponent<Animator>();                                     
        _playerAnimator.SetInteger("battle", 1);                                        
    }
protected override void Start ( ) { if ( ! isLocalPlayer ) return ; _parentMoveScript = GetComponent < Player_Control > ( ) ; _playerAnimator = GetComponent < Animator > ( ) ; _playerAnimator . SetInteger ( " " , 1 ) ; }
Called when the object is created
Called when the object is created
// Gets reference to the parent move script // Gets the animator component // Sets the state of the player to "battle" // (So the animations can work)