Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     //Debug.Log(Constants.timeLeft);
     countdown.text = "Time Remaining - " + Constants.timeLeft;
     if (Constants.timeLeft <= 1)
     {
         LoadLevel.exit();
     }
 }
Ejemplo n.º 2
0
 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
     }
 }