Example #1
0
 private void LoseGame()
 {
     GameOver = true;
     try
     {
         GameOverImage.SetActive(true);
         PopupImage.SetActive(true);
         RigidBodyFPSController.GetComponent <RigidbodyFirstPersonController>().enabled = false;
     }
     catch { }
 }
Example #2
0
        void Start()
        {
            PopupActive = false;
            if (PopupImage != null)
            {
                PopupImage.SetActive(false);
            }

            fpsController = RigidBodyFPSController.GetComponent <RigidbodyFirstPersonController>();
            audioScript   = GetComponent <AudioScript>();

            ShowPopup("Hei fuksipallero! Valitettavasti siivoojat nukkuivat tänään pommiin, joten tietokoneluokassa on hieman sotkuista.\n\nPaina Enter esittääksesi välittävän siistiydestä.");
        }