// Update is called once per frame void Update() { //Debug.Log(Constants.timeLeft); countdown.text = "Time Remaining - " + Constants.timeLeft; if (Constants.timeLeft <= 1) { LoadLevel.exit(); } }
void Update() { if (Constants.timeLeft <= 0) { field.GetComponent <FieldController>().setGameSummary(); //SceneManager.LoadScene("Scenes/Exit Scene"); stopTimer(); LoadLevel.exit(); } else { //Debug.Log(Constants.timeLeft); //Debug.Log(field); countdown.text = ("" + timeLeft); //Showing the Score on the Canvas } }