Пример #1
0
        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);
        }
Пример #2
0
 public void ActivatePowerUp(IPowerUp powerUp)
 {
     powerUp.Activate();
     activePowerUps.Add(powerUp);
 }