public void SetData(UpgradeStarRequireVo vo, CardModel cardModel, LevelModel model, int cardId) { _propName.text = vo.PropName + "X" + vo.CurrentNum; _propTexture.texture = ResourceManager.Load <Texture>(vo.GetPropTexturePath); _jumpDataList = cardModel.GetJumpDataById(vo.PropId); JumpTo(vo.PropId, vo.NeedNum, cardModel, model, cardId); }
public void SetData(KeyValuePair <int, int> vo, CardModel cardModel, LevelModel model) { var propvo = GlobalData.PropModel.GetUserProp(vo.Key); _propName.text = propvo.Name + "X" + propvo.Num; _propTexture.texture = ResourceManager.Load <Texture>(propvo.GetTexturePath(), ModuleConfig.MODULE_CARD); _jumpDataList = cardModel.GetJumpDataById(vo.Key); JumpTo(vo.Key, vo.Value, cardModel, model); }