Quantcast
Viewing latest article 4
Browse Latest Browse All 18

Answer by pixel_fiend

I might be over-simplifying the issue, but this works for me: IEnumerator checkInternetConnection(Action action){ WWW www = new WWW("http://google.com"); yield return www; if (www.error != null) { action (false); } else { action (true); } } void Start(){ StartCoroutine(checkInternetConnection((isConnected)=>{ // handle connection status here })); }

Viewing latest article 4
Browse Latest Browse All 18

Trending Articles