private void Recharge() { foreach (Item item in AttachedContainer.Container.Items) { IChargeable chargeable = item.GetComponent <IChargeable>(); if (chargeable != null) { chargeable.AddCharge(chargeable.GetChargeRate()); } } }
// Recharges the current cell that is placed on it private void Recharge() { foreach (Item item in containerDescriptor.attachedContainer.Container.Items) { IChargeable chargeable = item.GetComponent <IChargeable>(); if (chargeable != null) { chargeable.AddCharge(chargeable.GetChargeRate()); UpdateLights(chargeable.GetPowerPercentage()); } } }
private void RechargePowerCell(Item item) { IChargeable chargeable = item.GetComponent <IChargeable>(); chargeable.AddCharge(chargeable.GetChargeRate()); }