Esempio n. 1
0
 private void Recharge()
 {
     foreach (Item item in AttachedContainer.Container.Items)
     {
         IChargeable chargeable = item.GetComponent <IChargeable>();
         if (chargeable != null)
         {
             chargeable.AddCharge(chargeable.GetChargeRate());
         }
     }
 }
Esempio n. 2
0
 // 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());
         }
     }
 }
Esempio n. 3
0
    private void RechargePowerCell(Item item)
    {
        IChargeable chargeable = item.GetComponent <IChargeable>();

        chargeable.AddCharge(chargeable.GetChargeRate());
    }