60 lines
1.1 KiB
Plaintext
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()
|
|
{
|
|
|
|
|
|
}
|
|
}
|