Hyluss

[Unity] Check internet available

Feb 4th, 2018
543
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1.         if (Application.internetReachability != NetworkReachability.NotReachable)
  2.         {
  3.             Debug.Log("Network available");
  4.         }
  5.         else
  6.         {
  7.             Debug.Log("Network not available");
  8.         }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment