Skip to content

Instantly share code, notes, and snippets.

@col000r
Created September 8, 2014 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save col000r/77b37b10b1e74553cc06 to your computer and use it in GitHub Desktop.
Save col000r/77b37b10b1e74553cc06 to your computer and use it in GitHub Desktop.
MORILD is looking for freelancers! Show me you can code by completing this little script!
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class PingTest : MonoBehaviour {
public List<string> urls = new List<string>() { "google.com", "http://altavista.com", "https://github.com/explore", "maps.google.com" };
void Start () {
StartCoroutine( PingServers( urls ) );
}
IEnumerator PingServers(List<string> urls) {
//Ping all servers
//Sort urls by ping
//Debug.Log the result
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment