Exemplo n.º 1
0
 public void SetId(int id)
 {
     this.id = id;
     num     = 1;
     info    = ObjectInfo.instance.GetObjectInfoById(id);
     print(info.iconname);
     this.SetIconName(info.iconname);
     SetImg();
     //itemnum.gameObject.SetActive(true);
     itemnum.text = num.ToString();
     textname     = image.name;
     parent.ShowName(image.name);
 }