Example #1
0
 public void Power()
 {
     if (comp.powerState)
     {
         ChangeMat(off);
         comp.PowerOff();
     }
     else
     {
         ChangeMat(on);
         comp.PowerOn();
     }
 }
Example #2
0
    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();
    }