예제 #1
0
 protected void OnDestroy()
 {
     PauseEvent.UnregisterListener(LogEvent);
     MenuEvent.UnregisterListener(LogEvent);
     TileSoldEvent.UnregisterListener(LogEvent);
     TileDestroyedEvent.UnregisterListener(LogEvent);
     TileDamageEvent.UnregisterListener(LogEvent);
     TileUpdateEvent.UnregisterListener(LogEvent);
     BaseDamageEvent.UnregisterListener(LogEvent);
     BaseDamageUIEvent.UnregisterListener(LogEvent);
     PurchaseMadeEvent.UnregisterListener(LogEvent);
     PartsChangedUIEvent.UnregisterListener(LogEvent);
     EnemyRecycledEvent.UnregisterListener(LogEvent);
     GameStartEvent.UnregisterListener(LogEvent);
     GameOverEvent.UnregisterListener(LogEvent);
     GameWonEvent.UnregisterListener(LogEvent);
     FastForwardEvent.UnregisterListener(LogEvent);
 }
예제 #2
0
 protected void OnDestroy()
 {
     PauseEvent.UnregisterListener(Pause);
 }
예제 #3
0
 protected void OnDestroy()
 {
     PauseEvent.UnregisterListener(GamePaused);
     MenuEvent.UnregisterListener(Menu);
 }