EnergyUsingObject.removeBatteryAt C# (CSharp) Метод

removeBatteryAt() публичный Метод

Removes the battery at batIndex.
public removeBatteryAt ( int batIndex ) : void
batIndex int Bat index.
Результат void
	public void removeBatteryAt(int batIndex) {
		if (batIndex >= getNumBatteries() || batIndex < 0) {
			Debug.Log("removeBatteryAt - " + batIndex + " - NUM BATTERIES OUT OF BOUNDS");
			return;
		}
		powerSupply.getBatteryList().RemoveAt(batIndex);
	}