示例#1
0
 public void SetEquipItem(int idx, Item item, UICharEquip owner, bool equiped)
 {
     this.owner     = owner;
     this.index     = idx;
     this.item      = item;
     this.isEquiped = equiped;
     if (this.title != null)
     {
         this.title.text = this.item.Define.Name;
     }
     if (this.level != null)
     {
         this.level.text = item.Define.Level.ToString();
     }
     if (this.limitClass != null)
     {
         this.limitClass.text = item.Define.LimitClass.ToString();
     }
     if (this.LimitCategory != null)
     {
         this.LimitCategory.text = item.Define.Category;
     }
     if (this.icon != null)
     {
         this.icon.overrideSprite = Resloader.Load <Sprite>(this.item.Define.Icon);
     }
 }
示例#2
0
 public void ShowUiEquip()
 {
     uiCharaterEquip = UIManager.Instance.Show <UICharEquip>();
 }
示例#3
0
文件: UIMain.cs 项目: 1725038230/mmo
 public void OnClicckCharEquip()
 {
     UICharEquip CharEquip = UIManager.Instance.Show <UICharEquip>();
 }