コード例 #1
0
        public void onUnexpectedErrorInStore(string message, bool alsoPush)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore");

            JSONObject eventJSON = null;

            try {
                eventJSON = new JSONObject(message);
            } catch {}

            if (eventJSON != null && eventJSON ["errorCode"] != null)
            {
                StoreEvents.OnUnexpectedStoreError((int)eventJSON ["errorCode"].n);
            }
            else
            {
                StoreEvents.OnUnexpectedErrorInStore(message);
            }

            if (alsoPush)
            {
#if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR
                sep.PushEventSoomlaStoreInitialized();
#endif
            }
        }
コード例 #2
0
ファイル: StoreEvents.cs プロジェクト: quaxela/BoxHeads
        public void onUnexpectedErrorInStore(string message, bool alsoPush)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore");

            StoreEvents.OnUnexpectedErrorInStore(message);

            if (alsoPush)
            {
#if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR
                sep.PushEventSoomlaStoreInitialized();
#endif
            }
        }
コード例 #3
0
ファイル: StoreEvents.cs プロジェクト: mkzheng/unity3d-store
        /// <summary>
        /// Handles the <c>onItemPurchaseStarted</c> event, which is fired when an unexpected/unrecognized error
        /// occurs in store.
        /// </summary>
        /// <param name="message">Message that contains information about the error.</param>
        public void onUnexpectedErrorInStore(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore");

            StoreEvents.OnUnexpectedErrorInStore(message);
        }