Exemple #1
0
 protected virtual bool HandleRequest()
 {
     response = request.OnResponse();
     Debug.LogWarning("Response from Web Request:\n" + response);
     return(!response.Contains("Error"));    // not how this is supposed to be done
     // todo: make this handle the acc info that comes from the login verification request
 }
Exemple #2
0
        private void Awake()
        {
            init = new GameWebRequest(HttpMethod.Post, "app/init");

            button.interactable = true;
            button.onClick.AddListener(() =>
            {
                init.OnRequest();

                Debug.LogWarningFormat("Response from AppEngine request '{0}':\n{1}", init.request, init.OnResponse());
            });
        }