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); }
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); }
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; }
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); } }