// Token: 0x06002CED RID: 11501 RVA: 0x000C4050 File Offset: 0x000C2250 public void OnFadedToBlack() { foreach (SavePedestal savePedestal in SavePedestal.All) { savePedestal.OnFinishedTeleporting(); } if (!InstantiateUtility.IsDestroyed(this.m_teleportingStartSound)) { this.m_teleportingStartSound.FadeOut(0.5f, true); this.m_teleportingStartSound = null; } if (this.BloomFade) { UberGCManager.CollectResourcesIfNeeded(); } Characters.Sein.Position = this.m_teleporterTargetPosition + Vector3.up * 1.6f; CameraPivotZone.InstantUpdate(); Scenes.Manager.UpdatePosition(); Scenes.Manager.UnloadScenesAtPosition(true); Scenes.Manager.EnableDisabledScenesAtPosition(false); Characters.Sein.Controller.StopAnimation(); UI.Cameras.Current.MoveCameraToTargetInstantly(true); if (Characters.Ori) { Characters.Ori.BackToPlayerController(); } GameController.Instance.CreateCheckpoint(); GameController.Instance.PerformSaveGameSequence(); RandomizerStatsManager.UsedTeleporter(); LateStartHook.AddLateStartMethod(new Action(this.OnFinishedTeleporting)); }
// Token: 0x0600342D RID: 13357 RVA: 0x000D6B14 File Offset: 0x000D4D14 public override void Awake() { if (GameController.Instance != null) { UnityEngine.Object.Destroy(base.gameObject); return; } GameController.Instance = this; this.HandleTrialData(); this.WarmUpResources(); base.Awake(); if (LoadingBootstrap.Instance) { UnityEngine.Object.Destroy(LoadingBootstrap.Instance.gameObject); } this.GameScheduler.OnGameAwake.Add(new Action(this.OnGameAwake)); this.GameScheduler.OnGameAwake.Call(); this.GameScheduler.OnGameReset.Add(new Action(this.OnGameReset)); UberGCManager.OnGameStart(); this.m_systemsGameObject = new GameObject("systems"); Utility.DontAssociateWithAnyScene(this.m_systemsGameObject); base.transform.parent = this.m_systemsGameObject.transform; foreach (GameObject gameObject in this.Systems) { try { if (gameObject) { GameObject gameObject2 = UnityEngine.Object.Instantiate <GameObject>(gameObject); gameObject2.name = gameObject.name; gameObject2.transform.SetParentMaintainingLocalTransform(this.m_systemsGameObject.transform); } } catch (Exception ex) { } } new Telemetry(); UI.LoadMessageController(); this.Systems.Clear(); Application.targetFrameRate = 60; UberGCManager.CollectProactiveFull(); }