Browse Source

Merge pull request #335 from FungusGames/draggable-lean-tween

Fixed draggable objects behaving incorrectly #310
master
Chris Gregan 9 years ago
parent
commit
75de8af9a2
  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