Exemplo n.º 1
0
 void Start()
 {
     //Доска
     _board = GameObject.FindGameObjectWithTag("Board").GetComponent <TestBoard>();
     //Текст этой кнопки
     text = GetComponentInChildren <Text>();
     if (_isLast)
     {
         _board.NextQuestion();
     }
 }
Exemplo n.º 2
0
 private void Click()
 {
     Debug.Log("d");
     if (isCorrect)
     {
         _board.NextQuestion();
     }
     else
     {
         _board.Lose();
     }
 }