Exemplo n.º 1
0
        void Awake()
        {
            this.dbLoader = GetComponentInChildren <DatabaseLoader>();

            dbManager        = new DatabaseManager();
            vocabularyHelper = new VocabularyHelper(dbManager);
            scoreHelper      = new ScoreHelper(dbManager);
            teacherAI        = new TeacherAI(dbManager, vocabularyHelper, scoreHelper);

            // Load the first profile
            LoadProfile(DEBUG_PLAYER_UUID);
        }
Exemplo n.º 2
0
        void Awake()
        {
            this.dbLoader     = GetComponentInChildren <DatabaseLoader>();
            dbLoader.langCode = langCode;

            dbManager        = new DatabaseManager(true, langCode);
            vocabularyHelper = new VocabularyHelper(dbManager);
            scoreHelper      = new ScoreHelper(dbManager);
            teacherAI        = new TeacherAI(dbManager, vocabularyHelper, scoreHelper);

            if (TestCustomProfile != string.Empty)
            {
                LoadCustomProfile(TestCustomProfile);
            }
            else
            {
                LoadProfile(DEBUG_PLAYER_UUID);
            }
        }