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(); service.OpenSettings(); } void DestroyUI() { UIManager.Instance.DestroyUI(gameObject.name); } }