public void TryCharge(float amount)
 {
     if (_currentlyCharging == null)
     {
         var listop = _batsSC.Contents;
         if (listop.Count > 0)
         {
             _currentlyCharging = _batsSC.Contents[0] as ChargableBattery;
         }
     }
     else
     {
         _currentlyCharging.Charge += amount*250F;
         if (_currentlyCharging.Charge > ChargableBattery.MaxCharge)
         {
             _currentlyCharging.Charge = ChargableBattery.MaxCharge;
             _currentlyCharging = null;
         }
     }
 }
 public override void RemoveItem(InventoryItem item, bool transmitOverNetwork)
 {
     _currentlyCharging = null;
     base.RemoveItem(item, transmitOverNetwork);
     foreach (SubContainer current in this._itemSubContainers)
     {
         if (current.Contents.Contains(item))
         {
             current.Contents.Remove(item);
         }
     }
 }