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

18 lines
377 B
C#

using System.Collections;
using System.Collections.Generic;
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);
}
}