26 lines
609 B
C#
26 lines
609 B
C#
using asap.core;
|
|
using GameCore;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class SettingNotificationsPopupPanel : MonoBehaviour
|
|
{
|
|
public Button btn_ok;
|
|
public Button btn_cancel;
|
|
private void Start()
|
|
{
|
|
btn_ok.onClick.AddListener(OnBtnOk);
|
|
btn_cancel.onClick.AddListener(DestroyUI);
|
|
}
|
|
private void OnBtnOk()
|
|
{
|
|
DestroyUI();
|
|
ILocalNotificationService service = GContext.container.Resolve<ILocalNotificationService>();
|
|
service.OpenSettings();
|
|
}
|
|
void DestroyUI()
|
|
{
|
|
UIManager.Instance.DestroyUI(gameObject.name);
|
|
}
|
|
}
|