34 lines
920 B
C#
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();
|
|
}
|
|
} |