private void setToSwipeCard(SC_SwipeCard swipeCard) { swipeCardsParent.position = new Vector3(swipeCardsParent.position.x - transform.InverseTransformPoint(swipeCard.transform.position).x, swipeCardsParent.position.y, swipeCardsParent.position.z); currentSwipeCard = swipeCard; if (currentSwipeCard.associatedIndicatorCircle) { whiteIndicator.position = currentSwipeCard.associatedIndicatorCircle.position; } }
private void tweenToSwipeCard(SC_SwipeCard swipeCard, float time) { LeanTween.moveX(swipeCardsParent.gameObject, swipeCardsParent.position.x - transform.InverseTransformPoint(swipeCard.transform.position).x, time).setEase(LeanTweenType.easeOutCubic).setOnComplete(onTweenEnd); currentSwipeCard = swipeCard; }