43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class LoginPanel : UIBase
|
|
{
|
|
[Header("手机登录按钮")]
|
|
public Button phoneLogin;
|
|
[Header("隐私协议多选狂")]
|
|
public Toggle privacyPolicy;
|
|
[Header("加载中进度条")]
|
|
public GameObject loadingParent;
|
|
[Header("登录隐私父对象")]
|
|
public GameObject loginParent;
|
|
private void Start()
|
|
{
|
|
phoneLogin.onClick.AddListener(OnPhoneLogin);
|
|
}
|
|
private void OnPhoneLogin()
|
|
{
|
|
loginParent.SetActive(false);
|
|
loadingParent.SetActive(true);
|
|
//这里要跳转到具体的登录界面
|
|
UIManager.Instance.ShowAsync(UIPanel.HomeMainPanel, UIPanel.LoginPanel);
|
|
}
|
|
public override void Show(object args = null)
|
|
{
|
|
base.Show(args);
|
|
Destroy(GameManager.Instance.btn_Skip.gameObject);
|
|
if (loadingParent.activeSelf)
|
|
{
|
|
loadingParent.SetActive(false);
|
|
}
|
|
if (!loginParent.activeSelf)
|
|
{
|
|
loginParent.SetActive(true);
|
|
}
|
|
}
|
|
|
|
|
|
}
|