using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Rokid.MRC { public class UIServerPanel : UIPanelBase { public enum SubPanel { None, DescriptionView, IPListView, } private GameObject clientListView; private RectTransform clientItemParent; private GameObject clientItemPrefab; private GameObject descView; private Text txtDesc; private Button btnIPList; private Text txtTips; private List ipItemList = new List(); private Button btnInterface; private GameObject interfaceInfo; private Text txtInterfaceInfo; private Button btnDebug; private GameObject debugInfo; private Text txtDebugInfo; private Button btnObj; private Button btnRandomPos; public GameObject syncObj; public override void OnInit() { descView = transform.Find("DescView").gameObject; txtDesc = transform.Find("DescView/TxtDesc").GetComponent(); clientListView = transform.Find("ClientScrollView").gameObject; clientItemParent = transform.Find("ClientScrollView/Viewport/Content").GetComponent(); clientItemPrefab = transform.Find("ClientScrollView/Viewport/Content/ClientItem").gameObject; clientItemPrefab.SetActive(false); txtTips = transform.Find("TxtTips").GetComponent(); btnIPList = transform.Find("BtnIPList").GetComponent