/// <summary> /// Shows the part of the captain's log passed. /// </summary> /// <param name="menusToShow"></param> public void ShowCaptainsLog(CaptainsLogMenus menuToShow = CaptainsLogMenus.clueLog) { if (captainsLogCanvases.ContainsKey(menuToShow)) { captainsLogCanvases[menuToShow].SetActive(true); } else { throw new System.ArgumentException("Menu to show not yet implemented."); } }
/// <summary> /// Hides the part of the captain's log passed. /// </summary> /// <param name="menusToHide"></param> public void HideCaptainsLog(CaptainsLogMenus menusToHide = CaptainsLogMenus.all) { if (menusToHide == CaptainsLogMenus.all) { foreach (GameObject logCanvas in captainsLogCanvases.Values) { logCanvas.gameObject.SetActive(false); } } else { captainsLogCanvases[menusToHide].SetActive(false); } }