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); }
void Awake() { _databaseManager = AppManager.I.DB; _vocabularyHelper = AppManager.I.VocabularyHelper; _playSessionDatas = _databaseManager.GetAllPlaySessionData(); _letterDatas = _databaseManager.GetAllLetterData(); _wordDatas = _databaseManager.GetAllWordData(); _phraseDatas = _databaseManager.GetAllPhraseData(); //_letterFilters = new LetterFilters(); _wordFilters = new WordFilters(); }
private IEnumerator InitCO() { AppSettingsManager = new AppSettingsManager(); AssetManager = new AssetManager(); yield return(ReloadEdition()); // TODO refactor: standardize initialisation of managers VocabularyHelper = new VocabularyHelper(DB); JourneyHelper = new JourneyHelper(DB); ScoreHelper = new ScoreHelper(DB); Teacher = new TeacherAI(DB, VocabularyHelper, ScoreHelper); LogManager = new LogManager(); GameLauncher = new MiniGameLauncher(Teacher); FirstContactManager = new FirstContactManager(); Services = new ServicesManager(); FacebookManager = gameObject.AddComponent <FacebookManager>(); FacebookManager.verbose = true; // MonoBehaviors NavigationManager = gameObject.AddComponent <NavigationManager>(); NavigationManager.Init(); gameObject.AddComponent <KeeperManager>(); gameObject.AddComponent <BookManager>(); RewardSystemManager = new RewardSystemManager(); RewardSystemManager.Init(); PlayerProfileManager = new PlayerProfileManager(); PlayerProfileManager.LoadPlayerSettings(); Services = new ServicesManager(); Debug.Log("AppManager Init(): UIDirector.Init()"); UIDirector.Init(); // Must be called after NavigationManager has been initialized // Debugger setup if (!ApplicationConfig.I.DebugLogEnabled) { Debug.LogWarning("LOGS ARE DISABLED - check the App Config"); } Debug.unityLogger.logEnabled = ApplicationConfig.I.DebugLogEnabled; gameObject.AddComponent <Debugging.DebugManager>(); Debug.Log("AppManager Init(): UpdateAppVersion"); // Update settings AppSettingsManager.UpdateAppVersion(); Time.timeScale = 1; Loaded = true; }
public TeacherAI(DatabaseManager _dbManager, VocabularyHelper _vocabularyHelper, ScoreHelper _scoreHelper) { I = this; dbManager = _dbManager; vocabularyHelper = _vocabularyHelper; scoreHelper = _scoreHelper; logAI = new LogAI(_dbManager); minigameSelectionAI = new MiniGameSelectionAI(dbManager); VocabularyAi = new VocabularySelectionAI(dbManager); difficultySelectionAI = new DifficultySelectionAI(dbManager); buildMinimumMiniGameJourneyPositions(); }
/// <summary> /// first Init, from Awake() /// </summary> protected override void Init() { if (alreadySetup) { return; } alreadySetup = true; AppSettingsManager = new AppSettingsManager(); DB = new DatabaseManager(); // TODO refactor: standardize initialisation of managers LogManager = new LogManager(); VocabularyHelper = new VocabularyHelper(DB); JourneyHelper = new JourneyHelper(DB); ScoreHelper = new ScoreHelper(DB); Teacher = new TeacherAI(DB, VocabularyHelper, ScoreHelper); GameLauncher = new MiniGameLauncher(Teacher); FirstContactManager = new FirstContactManager(); Services = new ServicesManager(); FacebookManager = gameObject.AddComponent <FacebookManager>(); FacebookManager.verbose = true; // MonoBehaviors NavigationManager = gameObject.AddComponent <NavigationManager>(); NavigationManager.Init(); gameObject.AddComponent <KeeperManager>(); gameObject.AddComponent <BookManager>(); RewardSystemManager = new RewardSystemManager(); RewardSystemManager.Init(); PlayerProfileManager = new PlayerProfileManager(); PlayerProfileManager.LoadPlayerSettings(); Services = new ServicesManager(); Debug.Log("AppManager Init(): UIDirector.Init()"); UIDirector.Init(); // Must be called after NavigationManager has been initialized // Debugger setup Debug.unityLogger.logEnabled = AppConfig.DebugLogEnabled; gameObject.AddComponent <Debugging.DebugManager>(); Debug.Log("AppManager Init(): UpdateAppVersion"); // Update settings AppSettingsManager.UpdateAppVersion(); }
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); } }