void ChargeLimb(Limb limb, int amount) { if (!limb.FullyCharged && energyPoints > 0) { energyPoints -= amount; limb.Charge(amount); } UpdateEnergyUI(); }