void Destroy() { EventManagerTutorialTester.StopListening("Destroy", Destroy); StartCoroutine(DestroyNow()); }
void OnDisable() { EventManagerTutorialTester.StopListening("Destroy", Destroy); }
void OnDisable() { // EventManager.StopListening ("Spawn", spawnListener); EventManagerTutorialTester.StopListening("Spawn", Spawn); }
void OnDisable() { EventManagerTutorialTester.StopListening("test", someListener); EventManagerTutorialTester.StopListening("Spawn", SomeOtherFunction); EventManagerTutorialTester.StopListening("Destroy", SomeThirdFunction); }
/// <summary> /// Stop listening here. /// </summary> private void OnDisable() { EventManagerTutorialTester.StopListening("test", someListener); }