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