// Token: 0x06003545 RID: 13637 RVA: 0x000D9774 File Offset: 0x000D7974 public void RestoreCheckpointPart1() { GameController.Instance.IsLoadingGame = true; Game.Checkpoint.SaveGameData.ClearPendingScenes(); HashSet <SaveSerialize> hashSet = new HashSet <SaveSerialize>(); hashSet.Add(Scenes.Manager); hashSet.Add(GameController.Instance); hashSet.Add(SeinWorldState.Instance); SaveSceneManager.Master.Load(Game.Checkpoint.SaveGameData.Master, hashSet); Scenes.Manager.AutoLoadingUnloading = false; GoToSceneController.Instance.StartInScene = MoonGuid.Empty; Game.Checkpoint.SaveGameData.ClearPendingScenes(); Scenes.Manager.MarkLoadingScenesAsCancel(); if (this.SaveWasOneLifeAndKilled) { RuntimeSceneMetaData sceneInformation = Scenes.Manager.GetSceneInformation("sunkenGladesRunaway"); GameController.Instance.RequireInitialValues = true; GameStateMachine.Instance.SetToGame(); DifficultyController.Instance.ChangeDifficulty(DifficultyMode.OneLife); GoToSceneController.Instance.StartInScene = sceneInformation.SceneMoonGuid; GameController.Instance.IsLoadingGame = false; GoToSceneController.Instance.GoToSceneAsync(sceneInformation, new Action(this.OnFinishedLoading), false); return; } InstantLoadScenesController.Instance.OnScenesEnabledCallback = new Action(this.OnFinishedLoading); InstantLoadScenesController.Instance.LoadScenesAtPosition(null, true, false); }
// Token: 0x0600341B RID: 13339 RVA: 0x000D6894 File Offset: 0x000D4A94 public void GoToEndTrialScreen() { this.MainMenuCanBeOpened = false; GameStateMachine.Instance.SetToTrialEnd(); RuntimeSceneMetaData sceneInformation = Scenes.Manager.GetSceneInformation("trialEndScreen"); GoToSceneController.Instance.GoToScene(sceneInformation, new Action(this.OnFinishedLoadingTrialEndScene), false); }
// Token: 0x06003420 RID: 13344 RVA: 0x000D69C4 File Offset: 0x000D4BC4 public void RestartGame() { if (this.m_isRestartingGame) { return; } RuntimeSceneMetaData sceneInformation = Scenes.Manager.GetSceneInformation("titleScreenSwallowsNest"); if (sceneInformation == null) { return; } this.Timer.Reset(); this.MainMenuCanBeOpened = false; this.RequireInitialValues = true; GameController.Instance.IsLoadingGame = false; InstantLoadScenesController.Instance.OnGameReset(); GoToSceneController.Instance.GoToScene(sceneInformation, new Action(this.OnFinishedRestarting), false); }
// Token: 0x0600179C RID: 6044 RVA: 0x0007B95C File Offset: 0x00079B5C public bool PlayerInsideSameScene() { RuntimeSceneMetaData currentScene = Scenes.Manager.CurrentScene; return(currentScene != null && currentScene.SceneMoonGuid == this.SceneRootGUID); }