Exemple #1
0
        public void OnTouchDrag()
        {
            // TODO: Check if the card is using.
            if (card.stateTouched != Enums.StateTouch.BeginDrag && card.stateTouched != Enums.StateTouch.Drag)
            {
                return;
            }

            // TODO: Set the state is draging.
            card.stateTouched = Enums.StateTouch.Drag;

            // TODO: Follow the position.
            card.Follow();
        }