public void UpdateCurrentLevel(LevelSelection targetLevel) { uiSettings.curLvl = targetLevel; uiSettings.lvlDescription.value = targetLevel.levelDescription; uiSettings.lvlType.value = StaticFunctions.LevelTypeToString(targetLevel.type); uiSettings.lvlImg.sprite = targetLevel.levelImg; if (uiSettings.onLevelChanged != null) { uiSettings.onLevelChanged.Raise(); } }
public void LoadLevel(LevelSelection l) { targetLevel = l; modeType.text = StaticFunctions.LevelTypeToString(l.type); levelName.text = l.targetLevel; }