internal static void UnregisterHotSpot(UIPanel panel, UIHotSpot hotSpot) { if (((panel.mHotSpots != null) && panel.mHotSpots.Remove(hotSpot)) && panel.enabled) { hotSpot.OnPanelDisable(); } }
internal static void UnregisterHotSpot(UIPanel panel, UIHotSpot hotSpot) { if (panel.mHotSpots == null || !panel.mHotSpots.Remove(hotSpot)) { return; } if (panel.enabled) { hotSpot.OnPanelDisable(); } }
internal static void RegisterHotSpot(UIPanel panel, UIHotSpot hotSpot) { if (panel.mHotSpots == null) { panel.mHotSpots = new HashSet <UIHotSpot>(); } if (panel.mHotSpots.Add(hotSpot)) { if (panel.enabled) { hotSpot.OnPanelEnable(); } else { hotSpot.OnPanelDisable(); } } }
internal static void RegisterHotSpot(UIPanel panel, UIHotSpot hotSpot) { if (panel.mHotSpots == null) { panel.mHotSpots = new HashSet<UIHotSpot>(); } if (panel.mHotSpots.Add(hotSpot)) { if (!panel.enabled) { hotSpot.OnPanelDisable(); } else { hotSpot.OnPanelEnable(); } } }