Added AI code for enemies utilizing State Management Created simple enemy prefab with the AI
11 lines
271 B
C#
11 lines
271 B
C#
using System.Runtime.InteropServices.WindowsRuntime;
|
|
using UnityEngine;
|
|
|
|
public interface IState {
|
|
public void Initialize(Transform ownerTransform);
|
|
public void Start();
|
|
public void Tick();
|
|
public void Stop();
|
|
public virtual IState GetNextState() => null;
|
|
}
|