Exemplo n.º 1
0
        /// <summary>
        /// 石を購入する時のリクエストに関する処理
        /// </summary>
        /// <param name="param"></param>
        public void RequestBuyStoneItem(RequestBuyStoneItem param)
        {
            Debug.Log("sahosahosah");
            Dictionary <string, string> data = new Dictionary <string, string>();

            data.Add(NetWorkKey.USER_ID, param.user_id);
            data.Add(NetWorkKey.STATUS, "2");
            data.Add(NetWorkKey.TYPE, param.type);
            data.Add(NetWorkKey.TYPE_COUNT, param.count);
            StartCoroutine(requester.RequestPost(ip, data));
        }
    public void BuyStoneItem()
    {
        RequestBuyStoneItem param = new RequestBuyStoneItem();

        param.user_id = PlayerPrefs.GetString(NetWorkKey.USER_ID);
        param.type    = type;
        param.count   = number.ToString();
        ApiClient.Instance.RequestBuyStoneItem(param);
        ConfirmationStoneManager.Instance.SetActive(false);
        number = 1;
    }