public void OnBuyGoodsSuccess(UIMsgCmdData msg) { if (msg == null) { return; } SNPCGoodsBuySuccess data = IntPtrHelper.toData <SNPCGoodsBuySuccess>(msg.ptrParam); goodsTile.UpdateGoodsMask(data); }
public void UpdateGoodsMask(SNPCGoodsBuySuccess data) { foreach (UNPCGoodsItem goodsItem in DataSource) { if (goodsItem == null) { continue; } if (goodsItem.uidNPC == data.uidNPC && goodsItem.schemeGoods.GoodsID == data.goodsID) { goodsItem.nLastBuyTime = data.buyTime; break; } } }