protected override void PurchaseSuccessful() { int amount = Mathf.Min(amountToFill, energySystem.MaxEnergy - energySystem.CurrentEnergy); for (int i = 0; i < amount; i++) { energySystem.RecoverEnergy(); } }