Пример #1
0
        /*
         * Selecting logic
         */
        public void OnBeginDrag(PointerEventData eventData)
        {
            if (eventData.button != PointerEventData.InputButton.Left)
            {
                return;
            }

            if (!InputData.shouldAddSelection)
            {
                ClearSelection();
            }

            _selectionUi = Instantiate(_selectionUiInstance, _rectObjectsList).GetComponent <SelectionUI>();
            _selectionUi.Init(eventData);
        }