27 lines
646 B
C#
27 lines
646 B
C#
using asap.core;
|
|
using game;
|
|
using GameCore;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class SettingNotificationsGradePopupPanel : 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();
|
|
GContext.container.Resolve<ILocalNotificationService>().OpenSettings();
|
|
}
|
|
void DestroyUI()
|
|
{
|
|
GContext.container.Resolve<ISettingService>().ShowNotice = true;
|
|
UIManager.Instance.DestroyUI(gameObject.name);
|
|
}
|
|
}
|