Advertisement
CassataGames

Untitled

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