Beispiel #1
0
        public static void Hover(CommandMoveTargetManipulator target, MovementPart part)
        {
            if (currentMoving == null)
            {
                return;
            }

            if (target != currentHovering && currentHovering != null)
            {
                currentHovering.ReleaseHovering();
            }

            currentPart     = part;
            currentHovering = target;
            currentHovering.SetHovering(part);
        }
Beispiel #2
0
        public static void ApplyMovement(CommandMoveTargetManipulator target)
        {
            if (currentMoving == null)
            {
                return;
            }
            if (currentHovering == null)
            {
                return;
            }

            currentHovering.ReleaseHovering();

            var index = currentHovering.GetIndexFunc(currentPart);
            var list  = currentHovering.CommandList;

            currentMoving.Move(list, index);

            AbortMovement();
        }
Beispiel #3
0
 public static void AbortMovement()
 {
     currentMoving   = null;
     currentHovering = null;
 }