using System.Collections; using System.Collections.Generic; using UnityEngine; using BITKit; using UnityEngine.Events; namespace BITKit.UX { public class UXPanelEvent : MonoBehaviour, IPanelComponent { public UnityEvent onSetActive = new(); public UnityEvent onActive = new(); public UnityEvent onInactive = new(); public void SetActive(bool active) { onSetActive.Invoke(active); if (active) { onActive.Invoke(); } else { onInactive.Invoke(); } } public bool Enabled { get => enabled; set => enabled = value; } } }