예제 #1
0
 private void OnInteract()
 {
     //CurrentState is protected, use reflection to change it
     _state.SetValue(SM, SceneManager.State.Transitioning);
     SM.SetupState.PrepareForExitState();
     LoadingOverlay.Instance.Enable();
     SM.FadeOut(SM.SetupState.FadeOutTime, delegate
     {
         SM.SaveData();
         SM.SetupState.ExitState();
         _state.SetValue(SceneManager.Instance, SceneManager.State.ModManager);
         LoadingOverlay.Instance.Disable();
         //UnityEngine.SceneManagement.Scene ManualManager = SceneManagement.CreateScene("ManualManagerScene");
         //SceneManagement.SetActiveScene(ManualManager);
         button = true;
     });
 }