private void Awake() { if (SELF == null) { SELF = this; } else { throw new System.Exception("Duplicate AI Brains"); } }
private void OnEnable() { instance = target as EnemyAIBrain; TARGET_AFFINITY = serializedObject.FindProperty("TARGET_AFFINITY"); Targets = serializedObject.FindProperty("Targets"); }