void OnDisable() { //AIEventManager.StopListening ("test", someListener); AIEventManager.StopListening("Spawn", SomeOtherFunction); AIEventManager.StopListening("Destroy", SomeThirdFunction); AIEventManager.StopListening("Damage", DamageListener); }
void OnDisable() { // EventManager.StopListening ("Spawn", spawnListener); AIEventManager.StopListening("Spawn", Spawn); }