Exemplo n.º 1
0
    public void GetCurrentCartProducts(int id_client, OnGetCurrentCartCallback onGetCurrentCart)
    {
        var _url = GameHiddenOptions.Instance.ServerURL + _urlGetCartProducts + "?id_client=" + id_client;

        Debug.Log(_url);

        OnGetCurrentCart = onGetCurrentCart;
        StartCoroutine(WaitForCartRequest(_url));
    }
Exemplo n.º 2
0
    public void ChangeQuantity(int id_product_options, bool increase, int id_client, OnGetCurrentCartCallback onGetCurrentCart)
    {
        var _url = GameHiddenOptions.Instance.ServerURL + _urlPostChangeQuantity + "?id_client=" + id_client;

        Debug.Log(_url);

        var wwwForm = new WWWForm();

        wwwForm.AddField("id_product_options", id_product_options);
        wwwForm.AddField("increase", increase.ToString());

        OnGetCurrentCart = onGetCurrentCart;
        StartCoroutine(WaitForChangeQuantityRequest(id_client, _url, wwwForm));
    }