示例#1
0
        private static void LoadRegistery(RegisterySnapshot snap)
        {
            string path = "/saves/" + snap.m_identifier + ".gjd";

            BinaryFormatter bf     = new BinaryFormatter();
            FileStream      stream = File.Open(Application.persistentDataPath + path, FileMode.Open);

            Registery = bf.Deserialize(stream) as GameRegistery;
            stream.Close();

            PausePlayTimer(false);
            GameController.TimeController.GameOver(false);
            BlockedSave = false;
            SceneManager.LoadScene(Registery.m_snapshot.m_currentScene);
        }
示例#2
0
 public void ResetRegistery()
 {
     m_registery = new GameRegistery(m_startingLevel);
 }