Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (pc.GetScore() >= 3 && tm.IsNear())
     {
         txt.enabled = true;
         SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
     }
     else
     {
         txt.enabled = false;
     }
 }