Example #1
0
 public CustomStats()
 {
     data = new CustomSaveGameData();
     if (!loadStats())
         data = new CustomSaveGameData();
 }
Example #2
0
 public void resetData()
 {
     List<int> tempIDs = new List<int>(data.customLevelIDs);
     int tempnum = data.numCustomLevels;
     data = new CustomSaveGameData();
     data.numCustomLevels = tempnum;
     data.customLevelIDs = new List<int>(tempIDs);
     foreach (int id in data.customLevelIDs)
         data.customData.Add(id, new LevelData());
 }