📜  统一检查 Internet 连接 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:17.985000             🧑  作者: Mango

代码示例1
//REACHABLE VIA LOCAL NETWORK OR CARRIER DATA
if (Application.internetReachability != NetworkReachability.NotReachable)
{
     Debug.LogWarning("Connected to WiFi or Carrier network");
}