public static void PublishPowerupCollectedEvent() { PowerupCollected?.Invoke(); }
public void Collect() { PowerupCollected?.Invoke(powerupType); Destroy(gameObject); }