public void onGoodUpgrade(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onGoodUpgrade:" + message); string[] vars = Regex.Split(message, "#SOOM#"); VirtualGood vg = (VirtualGood)StoreInfo.GetItemByItemId(vars[0]); UpgradeVG vgu = (UpgradeVG)StoreInfo.GetItemByItemId(vars[1]); StoreEvents.OnGoodUpgrade(vg, vgu); }
void Awake() { if (instance == null) // making sure we only initialize one instance. { instance = this; GameObject.DontDestroyOnLoad(this.gameObject); } else // Destroying unused instances. { GameObject.Destroy(this.gameObject); } }
public void onGoodBalanceChanged(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onGoodBalanceChanged:" + message); string[] vars = Regex.Split(message, "#SOOM#"); VirtualGood vg = (VirtualGood)StoreInfo.GetItemByItemId(vars[0]); int balance = int.Parse(vars[1]); int amountAdded = int.Parse(vars[2]); StoreEvents.OnGoodBalanceChanged(vg, balance, amountAdded); }
public void onMarketPurchase(string message) { Debug.Log("SOOMLA/UNITY onMarketPurchase:" + message); string[] vars = Regex.Split(message, "#SOOM#"); PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(vars[0]); string payload = ""; string purchaseToken = ""; if (vars.Length > 1) { payload = vars[1]; } if (vars.Length > 2) { purchaseToken = vars[2]; } StoreEvents.OnMarketPurchase(pvi, purchaseToken); }
void Awake() { if(instance == null){ // making sure we only initialize one instance. instance = this; GameObject.DontDestroyOnLoad(this.gameObject); } else { // Destroying unused instances. GameObject.Destroy(this.gameObject); } }
public void onBillingNotSupported(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onBillingNotSupported"); StoreEvents.OnBillingNotSupported(); }
public void onIabServiceStopped(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onIabServiceStopped"); StoreEvents.OnIabServiceStopped(); }
public void onStoreControllerInitialized(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onStoreControllerInitialized"); StoreEvents.OnStoreControllerInitialized(); }
public void onUnexpectedErrorInStore(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onUnexpectedErrorInStore"); StoreEvents.OnUnexpectedErrorInStore(message); }
public void onRestoreTransactionsStarted(string message) { StoreUtils.LogDebug(TAG, "SOOMLA/UNITY onRestoreTransactionsStarted"); StoreEvents.OnRestoreTransactionsStarted(); }
/// <summary> /// Handles the <c>onMarketItemsRefreshStarted</c> event, which is fired when items associated with market /// refresh process has started. /// </summary> /// <param name="message">Message that contains information about the <c>market refresh</c> process that /// has started.</param> public void onMarketItemsRefreshStarted(string message) { Utils.LogDebug(TAG, "SOOMLA/UNITY onMarketItemsRefreshStarted"); StoreEvents.OnMarketItemsRefreshStarted(); }