コード例 #1
0
 public static void remove(DevkitSelection select)
 {
     if (DevkitSelectionManager.selection.Remove(select))
     {
         DevkitSelectionManager.endSelection(select);
     }
 }
コード例 #2
0
 public static void clear()
 {
     foreach (DevkitSelection select in DevkitSelectionManager.selection)
     {
         DevkitSelectionManager.endSelection(select);
     }
     DevkitSelectionManager.selection.Clear();
 }
コード例 #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);
     }
 }
コード例 #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);
     }
 }
コード例 #5
0
 // 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);
     }
 }