private void SaveGame() { if (inputField.text.Length == 0) { return; } gameSaver.SaveGame(inputField.text); menuController.CloseMenu(); }
public void OpenMenu(bool fromParent = true) { this.gameObject.SetActive(true); openedFromParent = fromParent; if (parentModalController != null && fromParent) { parentModalController.CloseMenu(); SetCanvasesInteractable(parentModalController.blockedCanvasGroups, false); } SetCanvasesInteractable(blockedCanvasGroups, false); }