示例#1
0
    public void FinishTransaction(string productId)
    {
        UM_InAppProduct product = UM_InAppPurchaseManager.GetProductById(productId);

        if (product != null)
        {
            FinishTransaction(product);
        }
        else
        {
            SendNoTemplateEvent();
        }
    }
示例#2
0
    public bool IsProductPurchased(string productId)
    {
        UM_InAppProduct product = UM_InAppPurchaseManager.GetProductById(productId);

        if (product != null)
        {
            return(IsProductPurchased(product));
        }
        else
        {
            return(false);
        }
    }
示例#3
0
    public void Consume(string productId)
    {
        UM_InAppProduct product = UM_InAppPurchaseManager.GetProductById(productId);

        if (product != null)
        {
            Consume(product);
        }
        else
        {
            SendNoTemplateEvent();
        }
    }