Example #1
0
        protected virtual void EnrollPurchase(object sender, Core.EventSystem.GameEventArgs args)
        {
            var boughtID = (args.objectParam as PurchaseEventArgs).purchasedProduct.definition.id;

            if (boughtID == productID)
            {
                Enroll();
            }
            else
            {
                Debug.LogError($"Receipt is not equal! /n current Receipt: {productID}. Bought Receipt {boughtID}.");
            }
        }