MIF_E31222569/Assets/ToothyV/Scripts/Gameplay/IdleState.cs

16 lines
317 B
C#

using UnityEngine;
public class IdleState : State
{
[SerializeField] private State attackState;
protected override void EnterState()
{
Agent.AgentAnimator.SetAnimationTo(AnimationType.Idle);
}
protected override void HandleAttack()
{
Agent.TransitionTo(attackState);
}
}