public void ResetLevel() { Debug.Log("Reseting day"); DayOver = false; elapsedDayTime = 0f; TaskController.ActivateAnswerPhase(false); }
private void UpdateDayTime() { elapsedDayTime += Time.deltaTime; if (elapsedDayTime >= DayLengthSeconds) { Debug.Log("DAY OVER - Tasks begin"); DayOver = true; RadioManager.Running = false; RadioManager.allowStart = false; AkSoundEngine.PostEvent("StopRadio", gameObject); TaskController.taskPanel.Activate(true); TaskController.ActivateAnswerPhase(true); } }