39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
|
#if UNITY_PURCHASE
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
namespace WZ
|
||
|
{
|
||
|
public struct PurchaseInfo
|
||
|
{
|
||
|
public string productName;
|
||
|
public string productID;
|
||
|
public string orderID;
|
||
|
public string currency;
|
||
|
public string price;
|
||
|
public string gameExtra;
|
||
|
public string productType;
|
||
|
public string failReason;
|
||
|
public bool orderAlreadyExists;
|
||
|
public bool purchaseResult;
|
||
|
public IAPResultType resultType;
|
||
|
public PurchaseInfo(string productName, string productID, string orderID,
|
||
|
string currency, string price, string gameExtra,
|
||
|
string productType, string failReason, bool orderAlreadyExists, bool purchaseResult,
|
||
|
IAPResultType resultType)
|
||
|
{
|
||
|
this.productName = productName;
|
||
|
this.productID = productID;
|
||
|
this.orderID = orderID;
|
||
|
this.currency = currency;
|
||
|
this.price = price;
|
||
|
this.gameExtra = gameExtra;
|
||
|
this.productType = productType;
|
||
|
this.failReason = failReason;
|
||
|
this.orderAlreadyExists = orderAlreadyExists;
|
||
|
this.purchaseResult = purchaseResult;
|
||
|
this.resultType = resultType;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|