Example #1
0
 public void OnBeginDrag(PointerEventData eventData)
 {
     if (!Input.GetKey(KeyCode.LeftControl) && !Input.GetKey(KeyCode.RightControl))
     {
         SelectorBox.DeselectAll(new BaseEventData(EventSystem.current));
     }
     selectionBoxImage.gameObject.SetActive(true);
     startPosition = eventData.position;
     selectionRect = new Rect();
 }
Example #2
0
 private void Crawler_Load(object sender, EventArgs e)
 {
     SelectorBox.SelectedIndex = 0;
     SelectorBox.Update();
 }
Example #3
0
 void Awake()
 {
     box = this;
     start_position_set = false;
 }
Example #4
0
 public override void Destroy()
 {
     SelectorBox.OnSelectionModified -= SelectorBox_OnSelectionModified;
     SelectorBox.CleanUp();
 }
 void Awake() {
     box = this;
     start_position_set = false;
 }