18 lines
377 B
C#
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);
|
|
}
|
|
}
|