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