public void Power() { if (comp.powerState) { ChangeMat(off); comp.PowerOff(); } else { ChangeMat(on); comp.PowerOn(); } }
IEnumerator ShutdownTimer() { int i = 6; while (--i > 0) { yield return(new WaitForSeconds(1f)); foreach (IGC_User user in userRegistry.loggedInUsers) { user.terminal.shell.stdout("shutting down in " + i); } } userRegistry.BootUsers(); terminal.PowerOff(); }