private void SaveGame()
 {
     if (inputField.text.Length == 0)
     {
         return;
     }
     gameSaver.SaveGame(inputField.text);
     menuController.CloseMenu();
 }
Beispiel #2
0
 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);
 }