public void OnTouchEndDrag() { // TODO: Check if the card is using. if (card.stateTouched != Enums.StateTouch.Drag && card.stateTouched != Enums.StateTouch.BeginDrag) { // TODO: Break the function. return; } // TODO: Reset the state of touching. card.stateTouched = Enums.StateTouch.None; // TODO: Check the Playing zone. if (DoCheckPlayingZone()) { // TODO: Break the functions. return; } // TODO: Back to the current position. card.Moving(card.TargetPosition, card.parentTransform, () => { // TODO: Distribute the follow cards. card.DistributeTheFollowCards(); // TODO: Failed Collect; card.AnimationFailedCollect(); }); }