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) { } }
public static void PublishPowerupCollectedEvent() { PowerupCollected?.Invoke(); }
public void Collect() { PowerupCollected?.Invoke(powerupType); Destroy(gameObject); }