/// <summary> /// Show the game UI. /// </summary> public void ShowGameUI() { if (mGameUI == null) { JCS_Debug.LogError("Game UI is not an avialiable references"); return; } mGameUI.Show(true); }
/// <summary> /// Pop one single dialogue. /// </summary> /// <param name="obj"></param> /// <returns></returns> private JCS_DialogueObject PopDialogue(JCS_DialogueObject obj) { if (obj == null) { return(null); } obj = (JCS_DialogueObject)JCS_Util.SpawnGameObject(obj); obj.Show(); obj.OpenKey = KeyCode.None; return(obj); }
/// <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) { if (panel == null) { return; } switch (type) { case JCS_PanelActionType.HIDE: { panel.Hide(!mPlayPanelSound); } break; case JCS_PanelActionType.SHOW: { panel.Show(!mPlayPanelSound); } break; } }