コード例 #1
0
ファイル: GamesDictionary.cs プロジェクト: bsgg/EnglishApp
 /// <summary>
 /// Loads the data for phrasal verb quiz
 /// </summary>
 public void LoadQuiz()
 {
     if (GameManager.Instance.GamesSectionControl.SectionGame == GamesControl.SECTION_GAME.PHRASALVERBQUIZ)
     {
         string jsonActionsString = Utils.LoadJSONResource("Data/Games/PhrasalVerbQuizGame");
         if (jsonActionsString != "")
         {
             dataPhrasalVerb = JsonMapper.ToObject <PhrasalVerbQuizData>(jsonActionsString);
         }
     }
     else if (GameManager.Instance.GamesSectionControl.SectionGame == GamesControl.SECTION_GAME.GRAMMARQUIZ)
     {
         string jsonActionsString = Utils.LoadJSONResource("Data/Games/GrammarQuizGame");
         if (jsonActionsString != "")
         {
             dataGrammar = JsonMapper.ToObject <GrammarQuizData>(jsonActionsString);
         }
     }
     else if (GameManager.Instance.GamesSectionControl.SectionGame == GamesControl.SECTION_GAME.COMMONMISTAKES)
     {
         string jsonActionsString = Utils.LoadJSONResource("Data/Games/CommonMistakesQuiz");
         if (jsonActionsString != "")
         {
             dataCommonMistakes = JsonMapper.ToObject <CommomMistakesData>(jsonActionsString);
         }
     }
 }
コード例 #2
0
ファイル: GamesDictionary.cs プロジェクト: bsgg/EnglishApp
        /// <summary>
        /// Loads the data for phrasal verb quiz
        /// </summary>
        public void LoadCommonMistakes()
        {
            string jsonActionsString = Utils.LoadJSONResource("Data/Games/CommonMistakesQuiz");

            if (jsonActionsString != "")
            {
                dataCommonMistakes = JsonMapper.ToObject <CommomMistakesData>(jsonActionsString);
            }
        }