unity 3d check internet connection code example
Example: unity check for internet connection
//REACHABLE VIA LOCAL NETWORK OR CARRIER DATA
if (Application.internetReachability != NetworkReachability.NotReachable)
{
Debug.LogWarning("Connected to WiFi or Carrier network");
}