예제 #1
0
    // Use this for initialization
    void Start()
    {
        VideoController vc = GameObject.Find("Video").GetComponent <VideoController>();

        vc.PauseVideo();
        int roundNumber = vc.GetRoundNumber();

        gameDataFileName = Application.dataPath + "/StreamingAssets/Video" + roundNumber + ".json";

        questions = LoadGameData();
        // correct = new List<Question>();
        // incorrect = new List<Question>();
        // questionCount = 0;
        questionTracker = new QuestionTracker();
        playerRecords   = new PlayerRecords();
        if (unanswered == null || unanswered.Count == 0)
        {
            unanswered = questions.ToList <Question>();
        }
        GetQuestion();
    }