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