CultivateImmortal/Assets/Scripts/UI/LoginPanel.cs

34 lines
787 B
C#
Raw Normal View History

2024-11-14 18:15:51 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class LoginPanel : BasePanel
{
//ע<>ᰴť
public Button btnRegister;
//<2F><>¼<EFBFBD><C2BC>ť
public Button btnLogin;
//<2F>˺<EFBFBD><CBBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public InputField inputUser;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public InputField inputPassword;
public override void Init()
{
btnRegister.onClick.AddListener(() =>
{
});
btnLogin.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<TopPanel>(E_UILayer.System);
UIManager.Instance.ShowPanel<BattlePanel>(E_UILayer.Middle);
UIManager.Instance.ShowPanel<LowerPanel>(E_UILayer.System);
UIManager.Instance.HidePanel<LoginPanel>();
});
}
}