public void batteryReload() { if (Input.GetKeyDown(KeyCode.R)) { if (batteryAdded != 0) { FlashLight.ReloadPower(batPower); FlashLight.drainTime = 10.0f; FlashLight.drainStart = false; batteryAdded -= 1; isbatteryReloaded = true; StartCoroutine("batteryReloadMessage"); } else { isnoBattery = true; StartCoroutine("noBatteryMessage"); } } }