public void Update()
{
iTweenExtensions.RotateTo(card.gameObject, Vector3.zero, animTime, 0, EaseType.easeOutCubic);
iTweenExtensions.MoveToLocal(card.gameObject, dest, animTime, 0, EaseType.easeOutCubic);
if (Vector3.Distance(card.gameObject.transform.localPosition, dest) < 0.08f)
{
card.gameObject.transform.localPosition = dest;
animationQueue.Add(new CardDestroyedAnim()
{
card = card,
cardDestroyed = cardDestroyed
});
Complete = true;
}
}