private void LoseGame() { GameOver = true; try { GameOverImage.SetActive(true); PopupImage.SetActive(true); RigidBodyFPSController.GetComponent <RigidbodyFirstPersonController>().enabled = false; } catch { } }
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ä."); }