Exemplo n.º 1
0
 public void SetLevel()
 {
     var levelsLib=new LevelsLibrary();
     if (this.Score >= levelsLib.LevelsTable[this.Level].Score)
     {
         this.Level++;
         this.SpeedInSeconds=levelsLib.LevelsTable[this.Level-1].SpeedInSeconds;
     }
 }
Exemplo n.º 2
0
        public void SetLevel()
        {
            var levelsLib = new LevelsLibrary();

            if (this.Score >= levelsLib.LevelsTable[this.Level].Score)
            {
                this.Level++;
                this.SpeedInSeconds = levelsLib.LevelsTable[this.Level - 1].SpeedInSeconds;
            }
        }