示例#1
0
 private void UpdateView()
 {
     levelTexts.ToList().ForEach(t => t.text = level.ToString());
     BosUtils.If(() => IsUnlocked, () => {
         unlockedView.Activate();
         BosUtils.MakeList(nextLevelView, lockedView).ForEach(v => v.Deactivate());
     }, () => {
         BosUtils.If(() => level == Services.BankService.NextLevel, () => {
             nextLevelView.Activate();
             BosUtils.MakeList(lockedView, unlockedView).ForEach(v => v.Deactivate());
         }, () => {
             lockedView.Activate();
             BosUtils.MakeList(unlockedView, nextLevelView).ForEach(v => v.Deactivate());
         });
     });
 }