Exemplo n.º 1
0
	private void OnEnable() {

		_pickupWasPickedUpEvent.Subscribe(HandlePickupWasPickedUpEvent);
		_basicEnemyWasKilledEvent.Subscribe(HandleBasicEnemyWasKilledEvent);
		_bossWasKilledEvent.Subscribe(HandleBossWasKilledEvent);
		_playerDidDieEvent.Subscribe(HandlePlayerDidDieEvent);
		_bossDidHitRecycleTileEvent.Subscribe(HandleBossDidHitRecycleTileEvent);
	}
Exemplo n.º 2
0
 private void OnEnable()
 {
     _gameEvent.Subscribe(HandleEvent);
 }