Files
JJBB/Assets/Project/Script/GUI/PVP/PvpSearchRoomPanel.cs

31 lines
660 B
C#
Raw Permalink Normal View History

2024-08-23 15:49:34 +08:00
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<int>();
req.LeaderName = leaderName;
req.SendMsg();
OnCloseBtn();
}
public void OnCloseBtn()
{
this.gameObject.SetActive(false);
}
}