/*void Start() * { * * }*/ /*void Update() * { * * }*/ public void Set(ShopConfig Cfg) { if (Cfg != null) { CommodityCfg = Cfg; CommodityIcon.spriteName = CommodityCfg.GetIcon(); CommodityName.text = CommodityCfg.GetName(); CommodityDes.text = CommodityCfg.GetDescribe(); if (CsvConfigTables.Instance.ItemCsvDic.TryGetValue(CommodityCfg.PriceType, out PriceItemCfg)) { PriceDes.text = CommodityCfg.NowPriceValue + PriceItemCfg.Name; } } }