예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     Zarinpal.StoreInitialized += () =>
     {
         if (DebugText != null)
         {
             DebugText.text = ("Initialize Succeed");
         }
     };
     Zarinpal.StoreInitializeFailed += (s) =>
     {
         if (DebugText != null)
         {
             DebugText.text = (s);
         }
     };
     Zarinpal.Initialize();
     Zarinpal.PurchaseSucceed += (productID, authority) =>
     {
         if (DebugText != null)
         {
             DebugText.text = ($"Product with ID {productID} purchase succeed with authority : {authority} ");
         }
         OnPurchaseDone?.Invoke(productID);
     };
 }
예제 #2
0
 public void Initialize()
 {
     Zarinpal.Initialize();
 }