|
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);
|
|
}
|
|
}
|