Exemple #1
0
        /// <inheritdoc />
        public override DragDropEffect OnDragDrop(ref Vector2 location, DragData data)
        {
            var result = base.OnDragDrop(ref location, data);

            if (_dragScriptItems.HasValidDrag)
            {
                result = _dragScriptItems.Effect;
                AddScripts(_dragScriptItems.Objects);
            }

            _dragScriptItems.OnDragDrop();

            return(result);
        }