// Token: 0x06000975 RID: 2421 RVA: 0x0004F599 File Offset: 0x0004D999
 public static void remove(DevkitSelection select)
 {
     if (DevkitSelectionManager.selection.Remove(select))
     {
         DevkitSelectionManager.endSelection(select);
     }
 }
Ejemplo n.º 2
0
 public static bool beginHover(DevkitSelection select)
 {
     if (select.gameObject == null)
     {
         return(false);
     }
     DevkitSelectionManager.data.collider = select.collider;
     DevkitSelectionManager.beginHoverHandlers.Clear();
     select.gameObject.GetComponentsInChildren <IDevkitInteractableBeginHoverHandler>(DevkitSelectionManager.beginHoverHandlers);
     foreach (IDevkitInteractableBeginHoverHandler devkitInteractableBeginHoverHandler in DevkitSelectionManager.beginHoverHandlers)
     {
         devkitInteractableBeginHoverHandler.beginHover(DevkitSelectionManager.data);
     }
     return(DevkitSelectionManager.beginHoverHandlers.Count > 0);
 }
Ejemplo n.º 3
0
 public static void add(DevkitSelection select)
 {
     if (select.gameObject == null)
     {
         return;
     }
     if (DevkitSelectionManager.selection.Contains(select))
     {
         return;
     }
     if (DevkitSelectionManager.beginSelection(select))
     {
         DevkitSelectionManager.selection.Add(select);
     }
 }
Ejemplo n.º 4
0
 public static void select(DevkitSelection select)
 {
     if (Input.GetKey(304) || Input.GetKey(306))
     {
         if (DevkitSelectionManager.selection.Contains(select))
         {
             DevkitSelectionManager.remove(select);
         }
         else
         {
             DevkitSelectionManager.add(select);
         }
     }
     else
     {
         DevkitSelectionManager.clear();
         DevkitSelectionManager.add(select);
     }
 }
 // Token: 0x06000973 RID: 2419 RVA: 0x0004F500 File Offset: 0x0004D900
 public static void select(DevkitSelection select)
 {
     if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.LeftControl))
     {
         if (DevkitSelectionManager.selection.Contains(select))
         {
             DevkitSelectionManager.remove(select);
         }
         else
         {
             DevkitSelectionManager.add(select);
         }
     }
     else
     {
         DevkitSelectionManager.clear();
         DevkitSelectionManager.add(select);
     }
 }