Ejemplo n.º 1
0
 // 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));
 }
Ejemplo n.º 2
0
    // Token: 0x06003313 RID: 13075
    public void OnFadedToBlack()
    {
        Vector3 position = this.Sein.Position;

        if (this.m_targetDoor)
        {
            position = this.m_targetDoor.transform.position;
        }
        if (Randomizer.Entrance)
        {
            Randomizer.EnterDoor(Characters.Sein.Position);
        }
        else
        {
            this.Sein.Position = position;
        }
        CameraPivotZone.InstantUpdate();
        Scenes.Manager.UpdatePosition();
        Scenes.Manager.UnloadScenesAtPosition(true);
        Scenes.Manager.EnableDisabledScenesAtPosition(false);
        this.Sein.gameObject.SetActive(true);
        UI.Cameras.Current.MoveCameraToTargetInstantly(true);
        this.Sein.PlatformBehaviour.PlatformMovement.PlaceOnGround(0.5f, 0f);
        UI.Cameras.Current.MoveCameraToTargetInstantly(true);
        if (Characters.Ori)
        {
            Characters.Ori.MoveOriBackToPlayer();
        }
        if (this.m_createCheckpoint)
        {
            GameController.Instance.CreateCheckpoint();
            GameController.Instance.PerformSaveGameSequence();
        }
        LateStartHook.AddLateStartMethod(new Action(this.OnGoneThroughDoor));
    }
Ejemplo n.º 3
0
 // Token: 0x06003437 RID: 13367 RVA: 0x0002974B File Offset: 0x0002794B
 public void SetupGameplay(SceneRoot sceneRoot, WorldEventsOnAwake worldEventsOnAwake)
 {
     sceneRoot.MetaData.InitialValues.ApplyInitialValues();
     this.WarmUpResources();
     if (worldEventsOnAwake != null)
     {
         worldEventsOnAwake.Apply();
     }
     LateStartHook.AddLateStartMethod(new Action(this.CreateCheckpoint));
 }
Ejemplo n.º 4
0
 // Token: 0x06003544 RID: 13636 RVA: 0x00029D0A File Offset: 0x00027F0A
 public void RestoreCheckpoint()
 {
     GameController.Instance.IsLoadingGame = true;
     LateStartHook.AddLateStartMethod(new Action(this.RestoreCheckpointPart1));
 }
Ejemplo n.º 5
0
 // Token: 0x06003444 RID: 13380 RVA: 0x0002988D File Offset: 0x00027A8D
 public void RestoreCheckpoint(Action onFinished = null)
 {
     this.IsLoadingGame = true;
     this.m_onRestoreCheckpointFinished = onFinished;
     LateStartHook.AddLateStartMethod(new Action(this.RestoreCheckpointImmediate));
 }