Ejemplo n.º 1
0
 internal static void UnregisterHotSpot(UIPanel panel, UIHotSpot hotSpot)
 {
     if (((panel.mHotSpots != null) && panel.mHotSpots.Remove(hotSpot)) && panel.enabled)
     {
         hotSpot.OnPanelDisable();
     }
 }
Ejemplo n.º 2
0
 internal static void UnregisterHotSpot(UIPanel panel, UIHotSpot hotSpot)
 {
     if (panel.mHotSpots == null || !panel.mHotSpots.Remove(hotSpot))
     {
         return;
     }
     if (panel.enabled)
     {
         hotSpot.OnPanelDisable();
     }
 }
Ejemplo n.º 3
0
 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();
         }
     }
 }
Ejemplo n.º 4
0
 internal static void UnregisterHotSpot(UIPanel panel, UIHotSpot hotSpot)
 {
     if (panel.mHotSpots == null || !panel.mHotSpots.Remove(hotSpot))
     {
         return;
     }
     if (panel.enabled)
     {
         hotSpot.OnPanelDisable();
     }
 }
Ejemplo n.º 5
0
 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();
         }
     }
 }