Example #1
0
        public void Initialize(string appUserID)
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            _wrapper = new PurchasesWrapperAndroid();
#elif UNITY_IOS && !UNITY_EDITOR
            _wrapper = new PurchasesWrapperIos();
#else
            _wrapper = new PurchasesWrapperNoop();
#endif
            Setup(string.IsNullOrEmpty(appUserID) ? null : appUserID);
        }
Example #2
0
    private void Start()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        _wrapper = new PurchasesWrapperAndroid();
#elif UNITY_IPHONE && !UNITY_EDITOR
        _wrapper = new PurchasesWrapperiOS();
#else
        _wrapper = new PurchasesWrapperNoop();
#endif
        Setup(string.IsNullOrEmpty(appUserID) ? null : appUserID);
        GetProducts(productIdentifiers, null);
    }