void activatePanel(PlayerBookPanel panel, bool status) { DetailPanel.SetActive(false); switch (panel) { case PlayerBookPanel.BookLetters: AudioManager.I.PlayDialog(LocalizationDataId.UI_Letters); LettersPanel(); break; case PlayerBookPanel.BookWords: AudioManager.I.PlayDialog(LocalizationDataId.UI_Words); WordsPanel(); break; case PlayerBookPanel.BookPhrases: AudioManager.I.PlayDialog(LocalizationDataId.UI_Phrases); PhrasesPanel(); break; case PlayerBookPanel.BookLearningBlocks: //AudioManager.I.PlayDialog(LocalizationDataId.UI); LearningBlockPanel(); break; } }
void OpenArea(PlayerBookPanel newArea) { if (newArea != currentArea) { currentArea = newArea; activatePanel(currentArea, true); ResetMenuButtons(); } }
void activatePanel(PlayerBookPanel panel, bool status) { switch (panel) { case PlayerBookPanel.MiniGames: //AudioManager.I.PlayDialog("Book_Games"); MinigamesPanel(); break; } }
void OpenPanel(PlayerBookPanel newPanel) { if (newPanel != currentPanel) { activatePanel(currentPanel, false); currentPanel = newPanel; activatePanel(currentPanel, true); ResetMenuButtons(); } }
void activatePanel(PlayerBookPanel panel, bool status) { switch (panel) { case PlayerBookPanel.Book: BookPanel.SetActive(status); break; case PlayerBookPanel.Parents: ParentsPanel.SetActive(status); break; case PlayerBookPanel.Player: PlayerPanel.SetActive(status); break; case PlayerBookPanel.MiniGames: GamesPanel.SetActive(status); break; } }
void OpenArea(PlayerBookPanel newArea) { currentArea = newArea; activatePanel(currentArea, true); }