Beispiel #1
0
 public static void StopFlow(SceneTrans_SO __sceneTrans)
 {
     if (state == FlowState.Stopped)
     {
         return;
     }
     // save data
     SavePointManager.SaveSavePoint();
     SceneDirector.LoadScene("Main_Scene", __sceneTrans);
     state = FlowState.Stopped;
 }
Beispiel #2
0
        public static void StartFlow(SceneTrans_SO __sceneTrans) // initiate flow only
        {
            // start flow
            if (state != FlowState.Stopped)
            {
                return;
            }

            // check whether have save point
            if (SavePointManager.IsSavePointSaved())
            {
                // load to save point
                SavePoint savePoint = SavePointManager.GetSavedSavePoint();
                IntraTransition.To(savePoint.scene, savePoint.markName, __sceneTrans);
            }
            else
            {
                // load to preface
                SceneDirector.LoadScene("Preface_Scene", __sceneTrans);
            }
        }
Beispiel #3
0
 public static void To(string __sceneName, string __markName, SceneTrans_SO __sceneTransition)
 {
     IntroductoryMark.MarkName = __markName;
     SceneDirector.LoadScene(__sceneName, __sceneTransition);
 }