40 lines
846 B
C#
40 lines
846 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class UserSettingPanel : UIPanelBase
|
|
{
|
|
private Button _okBtn;
|
|
private Button _cancelBtn;
|
|
|
|
private void Awake()
|
|
{
|
|
_okBtn = transform.Find("OKBtn").GetComponent<Button>();
|
|
_cancelBtn = transform.Find("CancelBtn").GetComponent<Button>();
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
_okBtn.onClick.AddListener(OnOKBtnClicked);
|
|
_cancelBtn.onClick.AddListener(OnCancelBtnClicked);
|
|
}
|
|
|
|
public override void Init(object[] pageData)
|
|
{
|
|
|
|
}
|
|
|
|
private void OnOKBtnClicked()
|
|
{
|
|
UIManager.Instance.CloseCurrent();
|
|
UIManager.Instance.LoadScene();
|
|
}
|
|
|
|
private void OnCancelBtnClicked()
|
|
{
|
|
UIManager.Instance.CloseCurrent();
|
|
}
|
|
}
|