备份CatanBuilding瘦身独立工程
This commit is contained in:
34
Assets/Scripts/UI/Setting/DeleteAccountPopupPanel.cs
Normal file
34
Assets/Scripts/UI/Setting/DeleteAccountPopupPanel.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user