public void OnConfirmPurchasePanelButtonClicked(bool isConfirmed)
 {
     confirmPanel.SetActive(false);
     if (isConfirmed)
     {
         PurchaseController.BuyProductId(_coinToPurchase.ProductId);
     }
 }
Ejemplo n.º 2
0
    public void OnConfirmPurchasePanelButtonClicked(bool isConfirmed)
    {
        confirmPanel.SetActive(false);

        if (isConfirmed)
        {
            // If the item sales in coins, buy the product through the client side.
            if (_carToPurchaseObj.IsRealMoneyPurchase)
            {
                PurchaseController.BuyProductId(_carToPurchaseObj.ProductId);
            }
            else
            {
                GameDataController.GetGameData().PurchaseCar(_carToPurchaseObj);
            }
        }
    }