Exemplo n.º 1
0
 private void SelectLevel(Level level)
 {
     if (level.Locked)
     {
         levelPopup.gameObject.SetActive(true);
         levelPopup.SetText("<b>Level " + level.ID + " is currently locked.</b>\nComplete level " + (level.ID - 1) + " to unlock");
     }
     else
     {
         levelController.StartLevel(level.LevelName);
     }
 }
Exemplo n.º 2
0
 void SelectLevel(Level level)
 {
     if (level.Locked)
     {
         levelPopup.gameObject.SetActive(true);
         levelPopup.SetText("<b>Level " + level.ID + " is currently locked.</b>\nComplete level " + (level.ID - 1) + " to unlock it!");
         Debug.Log("Level locked.");
     }
     else
     {
         Debug.Log("Go to level: " + level.ID);
         levelController.StartLevel(level.LevelName);
     }
 }