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