Ejemplo n.º 1
0
    void webAPIProcessEventForCS(BaseCSRequest request, BaseCSEvent baseEvent, bool showLoading)
    {
        WWW www = new WWW(Constants.CS_SERVER_HOST + request.GetQueryId(),
                          System.Text.Encoding.UTF8.GetBytes(request.ToRequestString()));


        mReqParam = null;
        mUrl      = "";
        mForm     = null;
        mReqParam = System.Text.Encoding.UTF8.GetBytes(request.ToRequestString());
        mUrl      = Constants.CS_SERVER_HOST + request.GetQueryId();
        Debug.Log(request.ToRequestString());

        StartCoroutine(webCSAPIProcess(www, baseEvent, showLoading));
    }
Ejemplo n.º 2
0
    void webAPIProcessEventForCS(BaseCSRequest request, BaseCSEvent baseEvent, bool showLoading)
    {
        WWW www = new WWW (Constants.CS_SERVER_HOST+request.GetQueryId(),
                           System.Text.Encoding.UTF8.GetBytes(request.ToRequestString()));

        mReqParam = null;
        mUrl = "";
        mForm = null;
        mReqParam = System.Text.Encoding.UTF8.GetBytes(request.ToRequestString());
        mUrl = Constants.CS_SERVER_HOST+request.GetQueryId();
        Debug.Log (request.ToRequestString());

        StartCoroutine (webCSAPIProcess(www, baseEvent, showLoading));
    }