/// <summary>
 /// Save the data in the object SaveData to disc.
 /// </summary>
 public void Save()
 {
     if (_jsonSaver != null)
     {
         _jsonSaver.Save(_saveData);
     }
 }
Example #2
0
 // save the data using the JsonSaver
 public void Save()
 {
     _jsonSaver.Save(_saveData);
 }
Example #3
0
        //public string PlayerName
        //{
        //    get { return saveData.playerName; }
        //    set { saveData.playerName = value; }
        //}

        public void Save()
        {
            jsonSaver.Save(saveData);
        }