void Start() { savePointManager = GameObject.FindGameObjectWithTag("SavePointManager").GetComponent <SavePointManager>(); con.color = new Color32(0, 0, 0, 255); res.color = new Color32(0, 0, 0, 255); theck.color = new Color32(0, 0, 0, 255); map.color = new Color32(0, 0, 0, 255); }
public static void StopFlow(SceneTrans_SO __sceneTrans) { if (state == FlowState.Stopped) { return; } // save data SavePointManager.SaveSavePoint(); SceneDirector.LoadScene("Main_Scene", __sceneTrans); state = FlowState.Stopped; }
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); } }
private void OnApplicationQuit() { SavePointManager.SaveSavePoint(); }
private void Start() { manager = GameObject.FindWithTag("SavePointManager").GetComponent <SavePointManager>(); triggered = false; }