📜  unity product.hasreceipt - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:14.334000             🧑  作者: Mango

代码示例1
Product product = storeController.products.WithID(productId);
if (product != null && product.hasReceipt)
{
    // Owned Non Consumables and Subscriptions should always have receipts.
    // So here the Non Consumable product has already been bought.
    itemBought = true;
}