Example #1
0
 // Use this for initialization
 public static bool ConnectionChecking()
 {
     try{
         //var client  = new WebClient();
         using(var stream = new WebClient().OpenRead("http://www.google.com"))
         {
             Debug.Log(stream.ToString());
             return true;
         }
     }catch {
         return false;
     }
 }