/// <summary> /// Hide the game UI. /// </summary> public void HideGameUI() { if (mGameUI == null) { JCS_Debug.LogError("Game UI is not an avialiable references"); return; } mGameUI.Hide(true); }
/// <summary> /// Hide the last open dialogue in the current scene. /// </summary> public void HideTheLastOpenDialogue() { // return if nothing in the list if (GetOpenWindow().Count == 0) { return; } JCS_DialogueObject jdo = GetOpenWindow().Last.Value; // once it hide it will remove from the list it self! jdo.Hide(); }
/// <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; } }