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