private object GetMSPData(string sheetName, KeyValuePair <string, Dictionary <string, object> > Keyvalue) { object result = null; if (sheetName.Equals("Shop") == true) { result = new MSP_Shop(Keyvalue); } if (sheetName.Equals("Game_Base") == true) { result = new MSP_Game_Base(Keyvalue); } if (sheetName.Equals("Localization") == true) { result = new MSP_Localization(Keyvalue); } if (sheetName.Equals("Item_ETC") == true) { result = new MSP_Item_ETC(Keyvalue); } if (sheetName.Equals("Game_Stage") == true) { result = new MSP_Game_Stage(Keyvalue); } return(result); }
public void SetData(MSP_Shop data) { Data = data; Icon.sprite = Core.Instance().GetIcon($"Image_Shop/{data.Icon}"); if (Core.Instance().dataManager.Item_ETC.ContainsKey(data.Goods)) { var ProductItem = Core.Instance().dataManager.Item_ETC[data.Goods]; Buy_image.sprite = Core.Instance().GetIcon(ProductItem.Image); } if (data.GoodsAmount > 0) { Buy_Amount.text = data.GoodsAmount.ToString(); } else if (Core.Instance().dataManager.GameBase.ContainsKey(data.Goods) == true) // 광고 { Buy_Amount.text = "광고 보기"; } else { Buy_Amount.text = "InAPP"; // 인앱 } }