public static void OnPowerUpHit(PowerUp powerUp) { data.fartTime = Mathf.Min(data.fartTime + powerUp.fartTime, data.specs.fartCapacity); data.glideTime = Mathf.Min(data.glideTime + powerUp.glideTime, data.specs.glideCapacity); powerUp.explode(); }