Ejemplo n.º 1
0
 public void ViewButtons()
 {
     if (model.IsInMenu())
     {
         var items = view.buttons[model.menuIndex];
         for (int index = 0; index < DataUtil.Length(items); index++)
         {
             bool isVisible = model.IsInRange(index);
             var  item      = items[index];
             SceneNodeView.SetVisible(item, isVisible);
             ButtonView.SetEnabled(item, model.IsUnlocked(index));
             TextView.SetChildText(item, model.LevelName(index));
         }
     }
 }