public static void PanelBecameInactive(Panel panel) { if (IsPanelRegistered(panel)) { OnPanelBecameInactive?.Invoke(panel); } }
public static void PanelCreated(Panel panel) { if (!IsPanelRegistered(panel)) { panels.Add(panel); panel.Internal.ChangeCloseButtonVisibility(onPanelClosed != null); OnPanelCreated?.Invoke(panel); if (panel.gameObject.activeInHierarchy) { OnPanelBecameActive?.Invoke(panel); } else { OnPanelBecameInactive?.Invoke(panel); } } }