public override void OnEnterStatus() { SDKManager.Init(); //SDKManager.LoadAD(ADType.Banner); SDKManager.LoadAD(ADType.Interstitial); FavoritesService.Init(); PoemLibrary.Init(); LanguageManager.Init(); GameOptionService.Init(); SDKManager.Log("LaunchGame", null); m_window = UIManager.OpenUIWindow <HotUpdateWindow>(); HotUpdateManager.StartHotUpdate(ReceviceHotUpdateProgress); }
void OnEnable() { GameOptionService.Init(); EditorGUIStyleData.Init(); data = DataManager.GetData(c_dataName); m_poemTypes.Clear(); m_difficultyLevels.Clear(); DataTable DifficultyData = DataManager.GetData("DifficultyData"); DataTable poemTypesData = DataManager.GetData("PoemTypeData"); for (int i = 0; i < poemTypesData.TableIDs.Count; i++) { m_poemTypes.Add(poemTypesData.TableIDs[i]); } for (int i = 0; i < DifficultyData.TableIDs.Count; i++) { m_difficultyLevels.Add(DifficultyData.TableIDs[i]); } }