Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System;
- using System.Collections.Generic;
- using System.Collections;
- using Prime31;
- public class StoreKitHelper : MonoBehaviour {
- private static StoreKitHelper instance_;
- private StoreKitHelper() {}
- #if UNITY_IOS
- private List<StoreKitProduct> products_;
- #elif UNITY_ANDROID
- private List<GooglePurchase> purchases_;
- private List<GoogleSkuInfo> skus_;
- #endif
- public static StoreKitHelper Instance
- {
- get
- {
- if (instance_ == null)
- {
- instance_ = new StoreKitHelper();
- instance_.Init();
- }
- return instance_;
- }
- }
- private void Init() {
- }
- public void Start() {
- ;
- }
- #if UNITY_IOS
- public List<StoreKitProduct> GetProducts() {
- return products_;
- }
- public void SetProducts(List<StoreKitProduct> products) {
- products_ = products;
- }
- #elif UNITY_ANDROID
- public void SetProducts(List<GooglePurchase> purchases, List<GoogleSkuInfo> skus) {
- purchases_ = purchases;
- skus_ = skus;
- }
- #endif
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement