Beispiel #1
0
    // Get information about the topic that the user chose
    public void OnTopicClick(string info)
    {
        questionPanel.SetActive(true);

        var timeMeasurer = System.Diagnostics.Stopwatch.StartNew();

        string[] splitInfo = info.Split('/');

        topicName = splitInfo[0];
        int.TryParse(splitInfo[1], out numOfQuestions);
        int.TryParse(splitInfo[2], out startLine);
        //int.TryParse(splitInfo[3], out endLine);
        startLine += 2;
        endLine    = startLine + numOfQuestions * 5 - 1;

        QuestionAnswerExtractor();

        infoManager.ConstructQuestions(topicName, numOfQuestions, quesPerRound, questionData);

        infoGetAnimator.SetTrigger("ClosePage"); // Do the page close animation

        achievementManager.GetAchTimerStartTime(Time.time);

        Debug.Log("InfoTime: " + timeMeasurer.ElapsedMilliseconds);
    }