public void removeBatteryAt(int batIndex) { if (batIndex >= getNumBatteries() || batIndex < 0) { Debug.Log("removeBatteryAt - " + batIndex + " - NUM BATTERIES OUT OF BOUNDS"); return; } powerSupply.getBatteryList().RemoveAt(batIndex); }