/// <summary>
 /// Use to restore purchased items.
 /// NOTE: This will check the IAP server for existing items owned by the user.
 /// </summary>
 /// <param name="restoreCallback">The callback that fires when done.</param>
 public void Restore(InAppPurchaseRestoreCallbackMethod restoreCallback)
 {
     if (restoringProducts || buyingProduct)
     {
         Debug.LogError("You must wait for the last restore, buy or consume to finish!");
         if (restoreCallback != null)
         {
             restoreCallback(null, false);
         }
         return;
     }
     restoringProducts    = true;
     this.restoreCallback = restoreCallback;
     plugin.Restore(async_RestoreCallback);
 }
示例#2
0
 public void Restore(InAppPurchaseRestoreCallbackMethod restoreCallback)
 {
     Native.Restore(restoreCallback);
 }