32 lines
773 B
C#
32 lines
773 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Unity.IO.LowLevel.Unsafe;
|
|
using UnityEngine;
|
|
using static UnityEditor.PlayerSettings;
|
|
|
|
namespace AI.Base {
|
|
public class EnemyStateManager : MonoBehaviour {
|
|
public static EnemyStateManager Instance;
|
|
public static List<GoblerStateManager> Goblers = new List<GoblerStateManager>();
|
|
public static Action UpdateTick;
|
|
public static Action GizmoTick;
|
|
|
|
public void Awake() {
|
|
Instance = this;
|
|
}
|
|
|
|
public void Update() {
|
|
UpdateTick?.Invoke();
|
|
}
|
|
|
|
public void OnDrawGizmos() {
|
|
//GizmoTick?.Invoke();
|
|
}
|
|
|
|
public static void DrawWireSphere(Color color, Vector3 center, float radius) {
|
|
Gizmos.color = color;
|
|
Gizmos.DrawWireSphere(center, radius);
|
|
}
|
|
}
|
|
}
|