Esempio n. 1
0
 // register all created WWWMessage objects and keep track of their status and yield progress. If they yield longer than the timeout stop the coroutine and make them call the error callback
 public void addMessage(WWWMessage msg)
 {
     messages.Add(msg);
 }
Esempio n. 2
0
        public void refreshGrid(string arenaName, Action <JSONObject> successCallback, Action <JSONObject> errorCallback)
        {
            var msg = new WWWMessage(this, "game/arena/" + arenaName.Replace(" ", "+"), successCallback, errorCallback);

            Networking.Instance.StartCoroutine(msg.send());
        }
Esempio n. 3
0
        public void refreshTopTeams(string arenaName, Action <JSONObject> successCallback, Action <JSONObject> errorCallback)
        {
            var msg = new WWWMessage(this, "arenas/" + arenaName.Replace(" ", "+") + "/teams/top", successCallback, errorCallback);

            Networking.Instance.StartCoroutine(msg.send());
        }
Esempio n. 4
0
        public void refreshArenas(Action <JSONObject> successCallback, Action <JSONObject> errorCallback)
        {
            var msg = new WWWMessage(this, "arenas/list", successCallback, errorCallback);

            Networking.Instance.StartCoroutine(msg.send());
        }
Esempio n. 5
0
 public void refreshGrid(string arenaName, Action<JSONObject> successCallback, Action<JSONObject> errorCallback)
 {
     var msg = new WWWMessage(this, "game/arena/" + arenaName.Replace(" ", "+"), successCallback, errorCallback);
     Networking.Instance.StartCoroutine(msg.send());
 }
Esempio n. 6
0
 // register all created WWWMessage objects and keep track of their status and yield progress. If they yield longer than the timeout stop the coroutine and make them call the error callback
 public void addMessage(WWWMessage msg)
 {
     messages.Add(msg);
 }
Esempio n. 7
0
 public void refreshArenas(Action<JSONObject> successCallback, Action<JSONObject> errorCallback)
 {
     var msg = new WWWMessage(this, "arenas/list", successCallback, errorCallback);
     Networking.Instance.StartCoroutine(msg.send());
 }