void Start() { #if !UNITY_EDITOR && UNITY_ANDROID // Initialize speech EasyTTSUtil.Initialize(EasyTTSUtil.UnitedKingdom); #endif // Load vocabulary m_VocabularyDictionary = new DataDictionary(); m_DataGrammar = new GrammarDictionary(); m_DataGamesDictionary = new GamesDictionary(); m_StateMenu = STATE_MENU.MAIN_MENU; m_MainMenuPanelUI.Show(); }
/*public void OnBackMenu() * { * switch (m_StateMenu) * { * case STATE_MENU.MAIN_MENU: * Application.Quit(); * break; * case STATE_MENU.VOCABULARY_MENU: * m_VocabularySectionControl.Finish(); * BackMainMenu(); * break; * case STATE_MENU.GRAMMAR_MENU: * GrammarSectionControl.Back(); * break; * case STATE_MENU.GAMES_MENU: * GamesSectionControl.Back(); * break; * } * }*/ public void BackMainMenu() { m_StateMenu = STATE_MENU.MAIN_MENU; m_MainMenuPanelUI.Show(); }