Example #1
0
    protected IEnumerator RequestData(ServerRequest serverRequest)
    {
        ValidateServerRequestForm(serverRequest.formServerRequest);
        ValidateHasMonoBehaviour();
        if (API_Config.Instance.isDebug)
        {
            Debug.Log("Request data :: " + serverRequest.formServerRequest.fields.Print(true));
        }
        yield return(monoBehaviour.StartCoroutine(serverRequest.RequestData()));

        InvokeRequestCallback(serverRequest);
        serverRequest.Dispose();
    }