Example #1
0
        static public void Create()
        {
            if (instance == null)
            {
                instance = new NewSaveGame();
            }

            Instance.saveFile = Application.persistentDataPath + "/BookItRunnerSave.bin";

            if (File.Exists(Instance.saveFile))
            {
                // If we have a save, we read it.
                Instance.Read();
            }
            else
            {
                // If not we create one with default data.
                NewSave();
            }
        }
 public void ResetSaveFile()
 {
     NewSaveGame.NewSave();
 }