예제 #1
0
	private void OnDisable() {

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