using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PvpSearchRoomPanel : MonoBehaviour { public InputField _inputText; private void OnEnable() { _inputText.text = ""; } public void OnSearchAndPartInBtn() { var leaderName = _inputText.text; ReqHonorBattlefieldMatchGetRoomList req = new ReqHonorBattlefieldMatchGetRoomList(); req.SegmentList = new List(); req.LeaderName = leaderName; req.SendMsg(); OnCloseBtn(); } public void OnCloseBtn() { this.gameObject.SetActive(false); } }