diff --git a/Forest/Assets/Scripts/Framework/Manager/ShopManager.cs b/Forest/Assets/Scripts/Framework/Manager/ShopManager.cs index c4a3596..19feda9 100644 --- a/Forest/Assets/Scripts/Framework/Manager/ShopManager.cs +++ b/Forest/Assets/Scripts/Framework/Manager/ShopManager.cs @@ -13,7 +13,6 @@ namespace Gameplay.Manager public class ShopManager : Singlenton, IInitable { private Dictionary _unusedPropCount; - public string Platform = "ios"; public bool IsDebug; private Dictionary _consumableGoods; @@ -40,21 +39,28 @@ namespace Gameplay.Manager InitProducts(); //_sdkHelper = SDKManager.Instance.GetSdkHelper(SDKManager.SdkName.IAP) as IBuyServices; IAPManager.Instance.SetClientVerify(true); - IAPManager.Instance.AddGoods(_consumableGoods.Keys.ToList(), _nonConsumableGoods.Keys.ToList(), OnRestorePurchase); + IAPManager.Instance.AddGoods(_consumableGoods.Keys.ToList(), _nonConsumableGoods.Keys.ToList(), + OnRestorePurchase); _init = true; } private void InitProducts() { #if UNITY_ANDROID - Platform = "android"; -#endif - _consumableGoods = new Dictionary() + _consumableGoods = new Dictionary() { - { Platform + "_CoinBox_100", 100 }, { Platform + "_CoinBox_600", 600 }, - { Platform + "_CoinBox_1600", 1600 } + { "android_coinbox_100", 100 }, { "android_coinbox_600", 600 }, + { "android_coinbox_1600", 1600 } }; _nonConsumableGoods = new Dictionary(); +#else + _consumableGoods = new Dictionary() + { + { "ios_CoinBox_100", 100 }, { "ios_CoinBox_600", 600 }, + { "ios_CoinBox_1600", 1600 } + }; + _nonConsumableGoods = new Dictionary(); +#endif } public void BuyGoods(string goodsID)