From 15b26ce60e1763c123846c2fe02daca275455587 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 12 Jan 2016 16:42:52 +0000 Subject: [PATCH] Changed move code to use LeanTween instead of iTween --- Assets/Fungus/Sprite/Scripts/Draggable2D.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Fungus/Sprite/Scripts/Draggable2D.cs b/Assets/Fungus/Sprite/Scripts/Draggable2D.cs index 6d88c58b..2e35bc71 100644 --- a/Assets/Fungus/Sprite/Scripts/Draggable2D.cs +++ b/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); } }