//-------------------------------------- // PUBLIC METHODS //-------------------------------------- public void loadStore() { if (_IsWaitingLoadResult || _IsStoreLoaded) { return; } _IsWaitingLoadResult = true; foreach (string pid in IOSNativeSettings.Instance.InAppProducts) { addProductId(pid); } string ids = ""; int len = _productsIds.Count; for (int i = 0; i < len; i++) { if (i != 0) { ids += ","; } ids += _productsIds[i]; } IOSNativeMarketBridge.loadStore(ids); }
//-------------------------------------- // PUBLIC METHODS //-------------------------------------- public void loadStore() { if (_IsStoreLoaded) { Invoke("FireSuccsesInitEvent", 1f); return; } if (_IsWaitingLoadResult) { return; } _IsWaitingLoadResult = true; foreach (string pid in IOSNativeSettings.Instance.InAppProducts) { addProductId(pid); } string ids = ""; int len = _productsIds.Count; for (int i = 0; i < len; i++) { if (i != 0) { ids += ","; } ids += _productsIds[i]; } #if !UNITY_EDITOR IOSNativeMarketBridge.loadStore(ids); #else if (IOSNativeSettings.Instance.SendFakeEventsInEditor) { Invoke("FireSuccsesInitEvent", 1f); } #endif }
public void LoadStore(bool forceLoad = false) { if (_IsStoreLoaded) { if (!forceLoad) { Invoke("FireSuccessInitEvent", 1f); return; } } if (_IsWaitingLoadResult) { return; } _IsWaitingLoadResult = true; string ids = ""; int len = Products.Count; for (int i = 0; i < len; i++) { if (i != 0) { ids += ","; } ids += Products[i].Id; } ISN_SoomlaGrow.Init(); #if !UNITY_EDITOR IOSNativeMarketBridge.loadStore(ids); #else if (IOSNativeSettings.Instance.SendFakeEventsInEditor) { Invoke("EditorFakeInitEvent", 1f); } #endif }