public class BuyItemClass : MonoBehaviour {
public bool purchase = false;
private static Soomla.Store.Example.ExampleEventHandler handler;
// Use this for initialization
void Start () {
handler = new Soomla.Store.Example.ExampleEventHandler();
SoomlaStore.Initialize(new Soomla.Store.Example.MuffinRushAssets());
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
if(!purchase)
{
if(GUI.Button(new Rect(100 , 100 , 200 , 200),"Buy"))
{
StoreInventory.BuyItem(Soomla.Store.Example.MuffinRushAssets.TENMUFF_PACK.ItemId);