Beispiel #1
0
 public void SetItemValue(object obj)
 {
     gameObject.GetComponent <UIButtonMessage> ().target       = gameObject;
     gameObject.GetComponent <UIButtonMessage> ().functionName = "ChargeHonorItem";
     itemInfo     = obj as HonorItemData;
     id1          = itemInfo.index;
     strName      = itemInfo.name;
     needHonorNum = itemInfo.cost;
     giftNum      = itemInfo.count;
     this.Refresh();
 }
Beispiel #2
0
    public void ShowItemReward(object obj)
    {
        ShowStar();
        HonorItemData thItem = obj as HonorItemData;

        //     honorGiftData = thItem;
        if (obj != null)
        {
            NGUITools.SetActive(giPos, true);
        }
        this.ShiftNameAndIcon(giftIcon, starsPic, _name, thItem.index);

        this.ShowNum(numObj, giftNum, thItem.count);
        //     this.ShowAtt(thItem);
    }