| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using System.Net.NetworkInformation; |
| | | using System; |
| | | using System.Net; |
| | | using System.Net.Sockets; |
| | | using System.IO; |
| | | using System.Text.RegularExpressions; |
| | | |
| | | #if UNITY_IOS |
| | | using UnityEngine.iOS; |
| | | #endif |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using System.Net.NetworkInformation;
|
| | | using System;
|
| | | using System.Net;
|
| | | using System.Net.Sockets;
|
| | | using System.IO;
|
| | | using System.Text.RegularExpressions;
|
| | |
|
| | | #if UNITY_IOS
|
| | | using UnityEngine.iOS;
|
| | | #endif
|
| | |
|
| | |
|
| | | public class DeviceUtility
|
| | | { |
| | | |
| | | {
|
| | |
|
| | | static string mac = string.Empty;
|
| | | public static string GetMac()
|
| | | {
|
| | |
| | | #else
|
| | | return SystemInfo.deviceUniqueIdentifier;
|
| | | #endif
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | public static string GetDeviceOSLevel()
|
| | | {
|
| | | #if UNITY_IOS
|
| | |
| | | #else
|
| | | return SystemInfo.operatingSystem;
|
| | | #endif
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | public static string GetDeviceName()
|
| | | {
|
| | | #if UNITY_IOS
|
| | |
| | | #else
|
| | | return SystemInfo.deviceName;
|
| | | #endif
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | public static string GetDeviceModel()
|
| | | {
|
| | | #if UNITY_IOS
|
| | |
| | | #else
|
| | | return SystemInfo.deviceModel;
|
| | | #endif
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | public static bool IsLowMemory()
|
| | | {
|
| | | #if UNITY_IOS
|
| | |
| | | }
|
| | |
|
| | | }
|
| | | |
| | | } |
| | |
|
| | | }
|