Example #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);
 }
Example #2
0
 protected void OnDestroy()
 {
     TileDamageEvent.UnregisterListener(TakeDamage);
 }