31 lines
660 B
C#
31 lines
660 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|