Example #1
0
    public override void OnShow()
    {
        FindObjectOfType <FilesMenu>().SetName(": " + screenName);

        firstSpace.ResetPicker();
        secondSpace.ResetPicker();

        firstSpace.GetComponent <Selectable>().Select();
        base.OnShow();
    }
    public void UpdateQuestion()
    {
        UpdatePageNumber();

        question.text = data.questions[currentQuestion].question;
        picker.ResetPicker();
        firstSelected.Select();
        prevButton.interactable = currentQuestion != 0;

        if (currentQuestion == data.questions.Count - 1)
        {
            nextButton.transform.GetChild(0).GetComponent <TMP_Text>().text = "FINALIZAR";
        }
        else
        {
            nextButton.transform.GetChild(0).GetComponent <TMP_Text>().text = "PRÓXIMA";
        }
    }