Quantcast
Channel: Answers by "pixel_fiend"
Viewing all articles
Browse latest Browse all 18

Answer by pixel_fiend

$
0
0
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 all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>