Browse Source

Changed move code to use LeanTween instead of iTween

master
chrisgregan 9 years ago
parent
commit
15b26ce60e
  1. 4
      Assets/Fungus/Sprite/Scripts/Draggable2D.cs

4
Assets/Fungus/Sprite/Scripts/Draggable2D.cs

@ -92,7 +92,7 @@ namespace Fungus
if (returnOnCompleted)
{
iTween.MoveTo(gameObject, startingPosition, returnDuration);
LeanTween.move(gameObject, startingPosition, returnDuration).setEase(LeanTweenType.easeOutExpo);
}
}
}
@ -107,7 +107,7 @@ namespace Fungus
if (returnOnCancelled)
{
iTween.MoveTo(gameObject, startingPosition, returnDuration);
LeanTween.move(gameObject, startingPosition, returnDuration).setEase(LeanTweenType.easeOutExpo);
}
}

Loading…
Cancel
Save