private void ApplyEffect(Player player) { switch (Type) { case PowerupType.Health: player.OffsetHealth(Amount); break; default: break; } }