Example #1
0
 public void OnLevelPress(int lvl)
 {
     // when a level is pressed, hide the menu and create the level
     if (lvl <= topLevel)
     {
         menuGfx.SetActive(false);
         backBtn.SetActive(true);
         game.CreateLevel(lvl + 1);
         currentLevel = lvl;
     }
 }