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(); }
private void Crawler_Load(object sender, EventArgs e) { SelectorBox.SelectedIndex = 0; SelectorBox.Update(); }
void Awake() { box = this; start_position_set = false; }
public override void Destroy() { SelectorBox.OnSelectionModified -= SelectorBox_OnSelectionModified; SelectorBox.CleanUp(); }