private void OnDisable() { _pickupWasPickedUpEvent.Unsubscribe(HandlePickupWasPickedUpEvent); _basicEnemyWasKilledEvent.Unsubscribe(HandleBasicEnemyWasKilledEvent); _bossWasKilledEvent.Unsubscribe(HandleBossWasKilledEvent); _playerDidDieEvent.Unsubscribe(HandlePlayerDidDieEvent); _bossDidHitRecycleTileEvent.Unsubscribe(HandleBossDidHitRecycleTileEvent); }
private void OnDisable() { _counterDataDidChangeEvent.Unsubscribe(HandleCounterDataDidChangeEvent); _enemyWasHitEvent.Unsubscribe(HandleEnemyWasHitEvent); _bossDidSpawnEvent.Unsubscribe(HandleBossDidSpawnEvent); }