public void SetData(DropVo vo) { _capsuleDropVo = vo; _propImage.sprite = ResourceManager.Load <Sprite>(vo.IconPath); _propImage.SetNativeSize(); _propNameTxt.text = vo.Name; _ownTxt.text = I18NManager.Get("MainLine_Have", vo.OwnedNum); _dropNum.text = vo.MaxNum.ToString(); }
public void SetData(DropVo data) { _dropVo = data; _propImage.sprite = ResourceManager.Load <Sprite>(data.IconPath, ModuleConfig.MODULE_CARD); _propNameTxt.text = data.Name; _ownTxt.text = "已有:" + data.OwnedNum; _ownTxt.text = I18NManager.Get("MainLine_Have", data.OwnedNum); _propImage.SetNativeSize(); }