Пример #1
0
 public void is_Correct()
 {
     win       = true;
     main.text = "I Guess the Number is : " + guess;
     HigherButton.SetActive(false);
     LowerButton.SetActive(false);
     CorrectButton.SetActive(false);
     RestartButton.SetActive(true);
 }
Пример #2
0
 void CpuLose()
 {
     main.text = "You have defeated me ! I will get you next time... ";
     NextButton.SetActive(false);
     CorrectButton.SetActive(false);
     RestartButton.SetActive(true);
     HigherButton.SetActive(false);
     LowerButton.SetActive(false);
 }
Пример #3
0
 void Welcome()
 {
     main.text = "Pick a Number! Lowest Number is : " + min + " Highest Number is : " + max;
     NextButton.SetActive(true);
     CorrectButton.SetActive(false);
     RestartButton.SetActive(false);
     HigherButton.SetActive(false);
     LowerButton.SetActive(false);
     attempts = 5;
 }
Пример #4
0
 public void UpdateGuess()
 {
     if (attempts != 0)
     {
         main.text = "Is it ? " + guess + " Or click higher or lower ?";
         NextButton.SetActive(false);
         RestartButton.SetActive(false);
         CorrectButton.SetActive(true);
         HigherButton.SetActive(true);
         LowerButton.SetActive(true);
     }
 }