示例#1
0
    private void ShowResults() {
        panelHandler.RunPopUp(PopUp.Results);

        GameObject.FindGameObjectWithTag("CorrectQuestions").GetComponent<Text>().text = correctlyAnsweredQuestions.ToString();
        GameObject.FindGameObjectWithTag("TotalQuestions").GetComponent<Text>().text = totalQuestions.ToString();

        totalQuestions = null;

        correctlyAnsweredQuestions = 0;
        nextButton.enabled = true;
        feedbackText.text = "";
        feedbackText.gameObject.SetActive(false);

        Destroy(GameObject.FindGameObjectWithTag("ARContent"));
        arTap.contentToPlace = null;
        arTap.isPlaced = false;
        ARInteraction.AREnabled = false;
        questionPanel.SetActive(false);
    }