WXMC/.svn/pristine/92/9213edce742bfff495da4ab1b6a94e33c1e065b3.svn-base
2024-12-04 16:18:46 +08:00

60 lines
1.1 KiB
Plaintext

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class LoginPanel : UIBaseView
{
public InputField Input_Account;
public InputField Input_Password;
public Button Btn_Regiest;
public Button Btn_Login;
public Button Btn_ForgetPassword;
public override void BeforeEnter()
{
base.BeforeEnter();
}
public override void AfterEnter()
{
base.AfterEnter();
Btn_Regiest.onClick.AddListener(Regiest);
Btn_Login.onClick.AddListener(Login);
Btn_ForgetPassword.onClick.AddListener(ForgetPassword);
}
public override void BeforeExit()
{
base.BeforeExit();
Btn_Regiest.onClick.RemoveAllListeners();
Btn_Login.onClick.RemoveAllListeners();
Btn_ForgetPassword.onClick.RemoveAllListeners();
}
//×¢²á
private void Regiest() {
}
//怬
private void Login()
{
NetWorkManager.Instance.Login(Input_Account.text,Input_Password.text);
}
//Íü¼ÇÃÜÂë
private void ForgetPassword()
{
}
}