public void ActivatePowerUp(IPowerUp powerUp) { powerUp.Activate(); activePowerUps.Add(powerUp); // Notify all the listeners that the PowerUp has been Activated PowerUpActivatedEvent powerUpActivatedEvent = new PowerUpActivatedEvent() { powerUp = powerUp }; EventManager.Instance.NotifyListeners(powerUpActivatedEvent); }
public void ActivatePowerUp(IPowerUp powerUp) { powerUp.Activate(); activePowerUps.Add(powerUp); }