Example #1
0
    void Start()
    {
        string appUserID = (string.IsNullOrEmpty(this.appUserID)) ? null : this.appUserID;

#if UNITY_ANDROID && !UNITY_EDITOR
        wrapper = new PurchasesWrapperAndroid();
#elif UNITY_IPHONE && !UNITY_EDITOR
        wrapper = new PurchasesWrapperiOS();
#else
        wrapper = new PurchasesWrapperNoop();
#endif

        Setup(appUserID);
        GetProducts(productIdentifiers);
    }