// Update is called once per frame void Update() { BudgetEnd = Budget; CodeEnd = TopLeft.Coder.CurrentValue; ArtEnd = TopLeft.Art.CurrentValue; TestEnd = TopLeft.QA.CurrentValue; employeesEnd = Employees; if (Budget <= 0 || Employees.Count <= 0 || TopLeft.isDone()) { SceneManager.LoadScene("End"); } if (!Paused) { if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } if ((CurrentTime += Time.deltaTime) >= SecondsPerDay) { DaysLeft--; if (DaysLeft <= 0) { SceneManager.LoadScene("End"); } AdvanceDay(); CurrentTime = 0f; } if (CurrentEmployee == null) { NextEmployee(); FillWords(); } if (_Sentence.Verb != null && _Sentence.Adjective != null && _Sentence.Noun != null) { JudgeThem(); } } else if (Paused && !DayEnd.screen.activeSelf && !MoodList.gameObject.activeSelf) { DayEnd.screen.SetActive(true); } }