public void ShowReward(AwardPB pb) { RewardVo vo = new RewardVo(pb); var propImage = transform.Find("Cards/Prop").GetComponent <Image>(); //propImage.sprite = ResourceManager.Load<Sprite>(vo.IconPath); //propImage.SetNativeSize(); PropUtils.SetPropItemIcon(vo, propImage, ModuleConfig.MODULE_ACTIVITYTEMPLATE); }
public void SetData(ActivityCapsuleItemPB data, ActivityCapsuleTemplateModel model) { _light.gameObject.SetActive(false); _credit.gameObject.SetActive(false); _rewardData = new RewardVo(data.AwardPB); PropUtils.SetPropItemIcon(_rewardData, _icon, ModuleConfig.MODULE_ACTIVITYCAPSULETEMPLATE, false, false); _icon.color = Color.white; _countText.text = "x" + _rewardData.Num; CheckBg(_rewardData); SetDisable(model.IsGainCapsuleItem(data.Id)); }