Ejemplo n.º 1
0
        void DragEnter(DragEnterEvent evt)
        {
            droppable = false;
            foreach (UnityEngine.Object obj in DragAndDrop.objectReferences)
            {
                if (!IsInAcceptedTypes(obj.GetType()))
                {
                    continue;
                }

                droppable = true;
                evt.StopPropagation();
                return;
            }
        }