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