private static IEnumerator <WWW> SendGet(ExperienceCallback callback) { WWW req = new WWW("http://" + domain + "/get?id=" + id); yield return(req); callback(int.Parse(req.text)); }
private static IEnumerator<WWW> SendGet(ExperienceCallback callback) { WWW req = new WWW("http://" + domain + "/get?id=" + id); yield return req; callback(int.Parse(req.text)); }
public static void GetExperience(ExperienceCallback callback) { sender.StartCoroutine(SendGet(callback)); }
public static void GetExperience(ExperienceCallback callback) { sender.StartCoroutine(SendGet(callback)); }