16 lines
313 B
C#
16 lines
313 B
C#
using AI.Base;
|
|
using UnityEngine;
|
|
|
|
namespace AI.StateMachines {
|
|
public class EnemyStateMachine : AgentController {
|
|
public IState IdleState;
|
|
public IState ChaseState;
|
|
|
|
protected override void Start() {
|
|
base.Start();
|
|
currentState = IdleState;
|
|
currentState?.OnEnter();
|
|
}
|
|
}
|
|
}
|