Beispiel #1
0
        public override void Initialize()
        {
            if (!(GuiElement is IDraggable))
            {
                // throw new ArgumentException("The GuiElement has to implement IDraggable!");
            }

            GuiStage = GuiElement.GetStage();

            DragAndDropStrategy.Initialize(GuiElement);

            PossibleDropTargets = DragAndDropStrategy.FindPossibleDropTargets(GuiElement.GetStage());

            HighlightingStrategy.Highlight(PossibleDropTargets);

            DragAndDropStrategy.Grab();

//            UnityEngine.Debug.Log("start drag and drop - targets: " + PossibleDropTargets.Count);
        }