I get these errors when I press the attack input:
public class PlayerAttackingState : PlayerBaseState
{
private Attack attack;
public PlayerAttackingState(PlayerStateMachine stateMachine, int attackId) : base(stateMachine)
{
attack = stateMachine.Attacks[attackId];
}
public override void Enter()
{
}
public override void Tick(float deltaTime)
{
stateMachine.Animator.CrossFadeInFixedTime(attack.AnimationName, 0.1f);
}
public override void Exit()
{
}
}