Beispiel #1
0
 public static Level getCurrentLevel()
 {
     if (currentLevel == null || currentLevel.getId() != LevelSwitcher.levelToLoad)
     {
         currentLevel = getLevel(LevelSwitcher.levelToLoad);
     }
     return(currentLevel);
 }
Beispiel #2
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (active)
     {
         LevelSwitcher.loadLevel(level.getId() + 1);
         AudioProvider.getInstance().playAudio("Standard Button");
     }
 }
Beispiel #3
0
 void Start()
 {
     level = GameMode.getCurrentLevel();
     if (!LevelLoader.getInstance().doesLevelExist(level.getId() + 1))
     {
         active = false;
         this.gameObject.SetActive(false);
     }
 }