#if UMR #endif using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Video; namespace Rokid.MRC { public class UIConnectPanel : UIPanelBase { private Transform rootPanel; private Text txtTitle; private Text txtDeviceNameLabel; private Text txtDeviceName; private Text txtIPLabel; private Text txtIP; private Text txtStatusLabel; private Text txtStatusDisconnect; private Transform rootStatusConnect; private Text txtStatusConnect; private Text txtButtonDisconnect; private Text txtDesc; private Button btnNetwork; private Text txtButtonNetwork; private Image imgWifi; private Text txtWifiName; private Text txtWifiLabel; //播放 private VideoPlayer videoPlayer; private Image imgPlay; private Button btnPlayBg; public override void OnInit() { base.OnInit(); rootPanel = transform.Find("Root"); //标题 txtTitle = transform.Find("Root/TxtTittle").gameObject.GetComponent(); //设备名称 txtDeviceNameLabel = transform.Find("Root/InfoView/DeviceInfo/TxtNameLabel").GetComponent(); txtDeviceName = transform.Find("Root/InfoView/DeviceInfo/TxtNameLabel/TxtName").GetComponent(); //IP txtIPLabel = transform.Find("Root/InfoView/IPInfo/TxtIPLabel").GetComponent(); txtIP = transform.Find("Root/InfoView/IPInfo/TxtIPLabel/TxtIP").GetComponent(); //设备状态 txtStatusLabel = transform.Find("Root/InfoView/SatusInfo/TxtStatusLabel").GetComponent(); txtStatusDisconnect = transform.Find("Root/InfoView/SatusInfo/TxtDisconnect").GetComponent(); rootStatusConnect = transform.Find("Root/InfoView/SatusInfo/Connected"); txtStatusConnect = rootStatusConnect.Find("TxtStatus").GetComponent(); txtButtonDisconnect = rootStatusConnect.Find("BtnStatus/Text").GetComponent(); Button btnDisconnect = rootStatusConnect.Find("BtnStatus").GetComponent