コード例 #1
0
    //When cartridge is inserted, get the List of questions and display the first question
    public void InsertCartridge(GameObject input)
    {
        cartridgeInserted        = true;
        cartridgeScript          = input.GetComponent <CartridgeJSONReader>();
        questions                = cartridgeScript.GetQuestions();
        currentQuestionNumber    = 0;
        totalQuestions           = questions.Length - 1;
        currentCartridgeFinished = false;

        points = 0;
        ResetPanelColors();
        StartQuiz();
    }