Ejemplo n.º 1
0
 public void Show(UserRoleHire[] userRolesHire)
 {
     root.SetActive(true);
     if (userRolesHire != null)
     {
         foreach (UserRoleHire role in userRolesHire)
         {
             GameObject     go   = NGUITools.AddChild(hireList.root.gameObject, hireList.prefab);
             UIHireHeroSlot slot = go.GetComponent <UIHireHeroSlot>();
             slot.InitUser(role, this);
             listHireSlot.Add(slot);
         }
         hireList.root.Reposition();
     }
 }