20 lines
361 B
C#

using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
public class AIController : MonoBehaviour
{
private BaseState currentState;
private void Start()
{
currentState = new IdleState();
}
private void Update()
{
currentState = currentState.ProcessStates();
}
}