public void UpdateLevels() { Time.timeScale = 1f; var userLevels = Userlevels.GetInstance().GetUserLevels(); if (userLevels.FirstOrDefault() == "all") { return; } foreach (var levelButton in LevelButtons) { levelButton.GetComponent <Button>().interactable = userLevels.Contains(levelButton.name); } }
public static Userlevels GetInstance() { return _instance ?? (_instance = new Userlevels()); }
public static Userlevels GetInstance() { return(_instance ?? (_instance = new Userlevels())); }