Files
5.24BuYu/Assets/MyGame/aa/UI/Login/SubPanel/RegisterPanel.cs
T

50 lines
1.3 KiB
C#

using Assets.MyGame.Scripts.Net;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class RegisterPanel : SubUIBase
{
public TMP_InputField tMPInput_UserName;
public TMP_InputField tMPInput_Password;
public TMP_InputField tMPInput_QueRenPassword;
public TMP_InputField tMPInput_SFZName;
public TMP_InputField tMPInput_SFZID;
public TMP_InputField tMPInput_YZM;
public Image img_YZM;
public Button btn_Register;
public override void Awake()
{
base.Awake();
btn_Register.onClick.AddListener(() =>
{
APIRequestList.Register(new Assets.MyGame.Scripts.Net.APIRequest.Objs.RegisterObj
{
mobile = tMPInput_UserName.text,
passWord = tMPInput_Password.text,
realName = tMPInput_SFZName.text,
iDCard = tMPInput_SFZID.text
}, usertoke =>
{
WebSocketManager.Instance.Connect(SocketType.login);
(uIManager.parentUIBase as UILoginPanel)?.Succeed();
});
});
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}