示例#1
0
 public void LoadSave()
 {
     StaticSettings.ReInitialize();
     Saves.LoadSaveFile(selectedSaveDateTime);
     MenusOpener.ClosesMenusEvent();
     GameMenu.CloseMenuEvent();
     SceneController.LoadSave();
 }
示例#2
0
 public void CloseMenu()
 {
     SetTimeScale(1);
     GameAudio.UnPauseAudioEvent();
     MenusOpener.ClosesMenusEvent();
     mainGameMenu.SetActive(false);
     if (isGameCursorLock)
     {
         GameCursor.SetCursorLock(true, CursorLockMode.Locked);
     }
     isMenuOpened = false;
     OnMenuClose?.Invoke();
 }
示例#3
0
 public void OpenSaves() => MenusOpener.OpenSavesMenuEvent(mainGameMenu);
示例#4
0
 public void OpenSettings() => MenusOpener.OpenSettingsMenuEvent(mainGameMenu);
示例#5
0
 public void OpenSaves() => MenusOpener.OpenSavesMenuEvent(MenuPanel);
示例#6
0
 public void OpenSettings() => MenusOpener.OpenSettingsMenuEvent(MenuPanel);