123456789101112131415161718192021 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class DeviceInfoView : MonoBehaviour
- {
- [SerializeField]
- private TextMesh IdentifierText;
- [SerializeField]
- private TextMesh SerialText;
- [SerializeField]
- private TextMesh PhysicalText;
- void Start()
- {
- IdentifierText.text = "设备唯一码 Identifier " + HttpStaticMessage.GetUniqueId();
- SerialText.text = "设备序列号 Serial " + CStaticMethod.SerialId();
- PhysicalText.text = "物理地址 Physical " +System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()[0].GetPhysicalAddress().ToString();
- }
- }
|