Exemple #1
0
        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());
 }
Exemple #3
0
 public static Userlevels GetInstance()
 {
     return(_instance ?? (_instance = new Userlevels()));
 }