/// <summary> /// Show the game UI. /// </summary> public void ShowGameUI() { if (mGameUI == null) { JCS_Debug.LogError("Game UI is not an avialiable references"); return; } mGameUI.ShowDialogueWithoutSound(); }
/// <summary> /// Do action according to the panel action type. /// </summary> /// <param name="panel"> panel to set </param> /// <param name="type"> action type </param> private void DoActionForeachPanel(JCS_DialogueObject panel, JCS_PanelActionType type) { // check null references... if (panel == null) { return; } switch (type) { case JCS_PanelActionType.HIDE: { if (mPlayPanelSound) { panel.HideDialogue(); } else { panel.HideDialogueWithoutSound(); } } break; case JCS_PanelActionType.SHOW: { if (mPlayPanelSound) { panel.ShowDialogue(); } else { panel.ShowDialogueWithoutSound(); } } break; } }