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); }
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); }