/// <summary> /// Shows the GUIRoot. /// </summary> public override void Show() { if (guiRoot != null) { guiRoot.gameObject.SetActive(true); guiRoot.ManualRefresh(); } }
/// <summary> /// Opens the quest log window. /// </summary> /// <example> /// if (Input.GetKeyDown(KeyCode.L) && !myQuestLogWindow.IsOpen) { /// myQuestLogWindow.Open(); /// } /// </example> public void Open() { IsOpen = true; PauseGameplay(); if (guiRoot != null) { guiRoot.gameObject.SetActive(true); guiRoot.ManualRefresh(); } ShowQuests(QuestState.Active); }
public override void OpenWindow(Action openedWindowHandler) { if (guiRoot != null) { guiRoot.gameObject.SetActive(true); if ((abandonQuestPopup != null) && (abandonQuestPopup.panel != null)) { abandonQuestPopup.panel.gameObject.SetActive(false); } guiRoot.ManualRefresh(); } openedWindowHandler(); }