public static string GetStoreName(IAPStore store) { switch (store) { case IAPStore.AmazonApps: return(AmazonApps.Name); case IAPStore.AppleAppStore: return(AppleAppStore.Name); case IAPStore.GooglePlay: return(GooglePlay.Name); case IAPStore.MacAppStore: return(MacAppStore.Name); case IAPStore.SamsungApps: return(SamsungApps.Name); case IAPStore.WindowsStore: return(WindowsStore.Name); default: return(string.Empty); } }
private void TestSingleton() { if (instance != null) { Destroy(gameObject); return; } instance = this; DontDestroyOnLoad(gameObject); }
private void InitIAPAnalytics(string productId, float cost, int quantity, string local_currency, IAPStore app_store, string durablity, int level, string context, string type, string subtype) { _productId = productId; _cost = cost; _quantity = quantity; _local_currency = local_currency; _app_store = app_store; _durability = durablity; _level = level; _context = context; _type = type; _subtype = subtype; }
/// <summary> /// Gets the name of the store. /// </summary> /// <returns>The store name.</returns> /// <param name="store">Store.</param> public static string GetStoreName(IAPStore store) { switch (store) { case IAPStore.GooglePlay: return(GooglePlay.Name); case IAPStore.AmazonAppStore: return(AmazonApps.Name); case IAPStore.CloudMoolah: return(MoolahAppStore.Name); case IAPStore.SamsungApps: return(SamsungApps.Name); case IAPStore.XiaomiMiPay: return(XiaomiMiPay.Name); case IAPStore.MacAppStore: return(MacAppStore.Name); case IAPStore.AppleAppStore: return(AppleAppStore.Name); case IAPStore.WinRT: return(WindowsStore.Name); case IAPStore.TizenStore: return(TizenStore.Name); case IAPStore.FacebookStore: return(FacebookStore.Name); default: return(string.Empty); } }
// Use this for initialization void Start() { m_US = GameObject.Find("UpgradeSystem").GetComponentInChildren <UpgradeSystem>(); m_IAPStore = GameObject.Find("UpgradeSystem").GetComponentInChildren <IAPStore>(); CheckState(); int posX = 350, posY = -100, offsetX = 200; if (m_MaterialCost > 0) { AddCostItem(posX, posY, 0, new Color(1, 1, 0), m_MaterialCost); posX += offsetX; } if (m_DNACost > 0) { AddCostItem(posX, posY, 1, new Color(1, 1, 1), m_DNACost); posX += offsetX; } if (m_MoneyCost > 0) { AddCostItem(posX, posY, 2, new Color(1, 1, 1), m_MoneyCost); posX += offsetX; } }
public IAPAnalytics(string productId, float cost, int quantity, string local_currency, IAPStore app_store, string durablity, int level, string context, string type, string subtype) { InitIAPAnalytics(productId, cost, quantity, local_currency, app_store, durablity, level, context, type, subtype); }
public IAPAnalytics(string productId, float cost, int quantity, string local_currency, IAPStore app_store, string durablity, int level) { InitIAPAnalytics(productId, cost, quantity, local_currency, app_store, durablity, level, null, null, null); }
public StoreSpecificId(IAPStore store, string id) { this.store = store; this.id = id; }