public static void remove(DevkitSelection select) { if (DevkitSelectionManager.selection.Remove(select)) { DevkitSelectionManager.endSelection(select); } }
public static void clear() { foreach (DevkitSelection select in DevkitSelectionManager.selection) { DevkitSelectionManager.endSelection(select); } DevkitSelectionManager.selection.Clear(); }
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); } }
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); } }