コード例 #1
0
ファイル: StoreEvents.cs プロジェクト: pontura/FamilympicsRun
        public static void onRestoreTransactionsFinished(RestoreTransactionsFinishedEvent _Event)
        {
            bool success = _Event.GetSuccess();

            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsFinished:" + success.ToString());
            StoreEvents.OnRestoreTransactionsFinished(success);
        }
コード例 #2
0
ファイル: StoreEvents.cs プロジェクト: mkzheng/unity3d-store
        /// <summary>
        /// Handles the <c>onRestoreTransactionsFinished</c> event, which is fired when the restore transactions
        /// process has finished.
        /// </summary>
        /// <param name="message">Message that contains information about the <c>restoreTransactions</c> process that
        /// has finished.</param>
        public void onRestoreTransactionsFinished(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsFinished:" + message);

            bool success = Convert.ToBoolean(int.Parse(message));

            StoreEvents.OnRestoreTransactionsFinished(success);
        }
コード例 #3
0
ファイル: StoreEvents.cs プロジェクト: quaxela/BoxHeads
        /// <summary>
        /// Handles the <c>onRestoreTransactionsFinished</c> event, which is fired when the restore transactions
        /// process has finished.
        /// </summary>
        /// <param name="message">Message that contains information about the <c>restoreTransactions</c> process that
        /// has finished.</param>
        public void onRestoreTransactionsFinished(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsFinished:" + message);

            var eventJSON = new JSONObject(message);

            bool success = eventJSON["success"].b;

            StoreEvents.OnRestoreTransactionsFinished(success);
        }