Exemplo n.º 1
0
 private void GameWin()
 {
     closeUILoss = true;
     UIStatus.SetActive(false);
     UIEnd.SetActive(true);
     textWorL.text   = "WINNER";
     textResult.text = "YOUR POINT IS: " + point;
     StartCoroutine(Wait(7, 0));
     start = false;
 }
Exemplo n.º 2
0
 private void Restart()
 {
     timeStart = 0;
     StartCoroutine(Wait(9, 0));
     index = 8;
     StartCoroutine(MoveCam());
     StartCoroutine(Wait(0, 3));
     StartCoroutine(Wait(1, 15));
     UIEnd.SetActive(false);
     UIDoor.SetActive(true);
     point       = 0;
     time        = 80;
     closeUILoss = false;
     for (int j = 0; j < 8; j++)
     {
         if (checkQuestion[j] == 1)
         {
             checkQuestion[j] = 0;
         }
     }
     GoOrNot();
 }
Exemplo n.º 3
0
 private void GameLoss()
 {
     if (Time.time == 80 + Mathf.Round(timeStart))
     {
         if (!closeUILoss)
         {
             UIQuestion.SetActive(false);
             UIStatus.SetActive(false);
             UIEnd.SetActive(true);
             textWorL.text   = "LOSER";
             textResult.text = "YOUR POINT IS: " + point;
             StartCoroutine(Wait(6, 0));
             start = false;
         }
     }
     else if (Time.time >= 80 + Mathf.Round(timeStart))
     {
         if (word == "Restart")
         {
             Restart();
             word = "";
         }
     }
 }