public void UseBatteryBurst(int index) // 0 and 1 { if (CheckExistenceOfBattery(index)) { if (index == 0) { mainBattery.Burst(); } else { subBattery.Burst(); } } }
public void UseBatteryBurst(int index) // 0 and 1 { if (CheckExistenceOfBattery(index)) { if (index == 0) { mainBattery.Burst(); } else { subBattery.Burst(); } } }