Clear() public method

public Clear ( ) : void
return void
コード例 #1
0
        /// <summary>
        /// This is useful in certain test scenarios, such as repeatedly testing
        /// an App's behaviour when purchases are restored.
        ///
        /// This is a static method since developers may wish to clear the log before
        /// initialising IAP.
        /// </summary>
        public static void ClearTransactionLog()
        {
#if UNITY_2017_1_OR_NEWER
            var log = new TransactionLog(UnityEngine.Debug.unityLogger, Application.persistentDataPath);
#else
            var log = new TransactionLog(UnityEngine.Debug.logger, Application.persistentDataPath);
#endif
            log.Clear();
        }
コード例 #2
0
        /// <summary>
        /// This is useful in certain test scenarios, such as repeatedly testing
        /// an App's behaviour when purchases are restored.
        ///
        /// This is a static method since developers may wish to clear the log before
        /// initialising IAP.
        /// </summary>
        public static void ClearTransactionLog()
        {
            var log = new TransactionLog(UnityEngine.Debug.unityLogger, Application.persistentDataPath);

            log.Clear();
        }