예제 #1
0
 bool StartLevel(int levelNum)
 {
     if (levelNum >= gameLevels.Length)
     {
         Scorekeeper.Victory();
         return(false);
     }
     else
     {
         var level = gameLevels[levelNum];
         level.StartLevel();
         return(true);
     }
 }