void OnEnable() { //AIEventManager.StartListening ("test", someListener); AIEventManager.StartListening("Spawn", SomeOtherFunction); AIEventManager.StartListening("Destroy", SomeThirdFunction); AIEventManager.StartListening("Damage", DamageListener); }
// private UnityAction spawnListener; // // void Awake () { // spawnListener = new UnityAction (Spawn); // } void OnEnable() { // EventManager.StartListening ("Spawn", spawnListener); AIEventManager.StartListening("Spawn", Spawn); }