Created
September 8, 2014 21:25
-
-
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!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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