Skip to content

v3.2.2

Compare
Choose a tag to compare
@VirtueSky VirtueSky released this 12 Dec 04:39
· 43 commits to main since this release
66f70be

Changed:

  • Refactor IAP
    • Remove EventPurchaseProduct, call purchase product via IapDataVariable
    public IapDataVariable removeAds;
    public void BuyRemoveAds()
    {
        removeAds.Purchase();
    }
    • Remove EventIsPurchaseProduct, call check is purchased product via IapDataVariable
    public IapDataVariable removeAds;
    public void Start()
    {
        if (removeAds.IsPurchased())
        {
            //
        }
    }
    • Call restore purchase by static
    public void RestorePurchase()
    {
        IapManager.Restore();
    }
    • don't delete IapDataVariable when generate product
    • Edit wiki IAP
  • Add more method in CreateAsset (method CreateAndGetScriptableAssetByName and GetScriptableAssetByName)