Advertisement
CassataGames

Untitled

Feb 5th, 2017
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. [System.Serializable]
  2. public class SaveClass
  3. {
  4.     public List<Section> Sections;
  5.  
  6.     [System.Serializable]
  7.     public class Section
  8.     {
  9.         public string SectionName;
  10.         public int LevelCount;
  11.         public List<bool> LevelBeaten;
  12.         public List<bool> LevelCompleted;
  13.  
  14.         public Section(string SectionName, int LevelCount)
  15.         {
  16.             this.SectionName = SectionName;
  17.             this.LevelCount = LevelCount;
  18.             LevelBeaten = new List<bool>();
  19.             LevelCompleted = new List<bool>();
  20.             for (int i = 0; i < LevelCount; i++)
  21.             {
  22.                 LevelBeaten.Add(false);
  23.                 LevelCompleted.Add(false);
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement