Files
back_cantanBuilding/Assets/Scripts/UI/Setting/DeleteAccountPopupPanel.cs
2026-05-26 16:15:54 +08:00

34 lines
920 B
C#

using GameCore;
using UnityEngine;
using UnityEngine.UI;
public class DeleteAccountPopupPanel : MonoBehaviour
{
public Button btn_close;
public Button btn_sure;
public Button btn_cancel;
private void Awake()
{
btn_close = transform.Find("mask").GetComponent<Button>();
btn_sure = transform.Find("root/btn_continue/btn_green").GetComponent<Button>();
btn_cancel = transform.Find("root/btn_cancel/btn_green").GetComponent<Button>();
}
private void Start()
{
btn_close.onClick.AddListener(OnClose);
btn_sure.onClick.AddListener(OnBtnSure);
btn_cancel.onClick.AddListener(OnClose);
}
void OnClose()
{
UIManager.Instance.DestroyUI(UITypes.DeleteAccountPopupPanel);
}
void OnBtnSure()
{
//取消关联
//PlayFabMgr.Instance.DeleteAccount();
//GameStateMgr.Instance.RestartGame();
}
}