Пример #1
0
 private void ProcessPowerup(PowerupCollected powerup)
 {
     foreach (var component in grabBallFilter)
     {
         grabBallFilter.Components1[component].IsPowerupEnabled = true;
     }
 }
Пример #2
0
 private void ProcessPowerup(PowerupCollected powerup)
 {
     if (powerup.Type == PowerupType.GrabBall)
     {
     }
 }
Пример #3
0
 public static void PublishPowerupCollectedEvent()
 {
     PowerupCollected?.Invoke();
 }
Пример #4
0
 public void Collect()
 {
     PowerupCollected?.Invoke(powerupType);
     Destroy(gameObject);
 }