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