123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using UnityEngine;
- /// <summary>
- /// 工具集
- /// </summary>
- public partial class Utils
- {
- /// <summary>
- /// 网络可用
- /// </summary>
- public static bool NetAvailable
- {
- get
- {
- return Application.internetReachability != NetworkReachability.NotReachable;
- }
- }
- /// <summary>
- /// 是否是无线
- /// </summary>
- public static bool IsWifi
- {
- get
- {
- return Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork;
- }
- }
- }
|