public void OnConfirm() { if (infoType == InfoType.SHOP_LOADING_ERROR || infoType == InfoType.ORDER_ERROR) { HideWindow(); ExitShop.Exit(); ShopMain.SetActive(false); Comanda.C5.PaypalCancel(); } else if (infoType == InfoType.ORDER_SUCCESS) { HideWindow(); ItemPurchased.AddItem(ShopActions.inst.itemName); ShopActions.inst.ResetCheckoutScreen(); ShopActions.inst.EnableShopWindow(); ShopMain.SetActive(false); Comanda.C5.PaypalCancel(); } }
public void CloseShop() { gameObject.SetActive(false); ExitShop.Exit(); }