Last active
August 29, 2015 14:03
-
-
Save takashicompany/990333e689c13ec61bd3 to your computer and use it in GitHub Desktop.
HOTweenとiTweenのサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// targetが1秒かけて、座標(0,0,0)へ、イージングをしながら移動する | |
HOTween.To( | |
target.transform, | |
1f, | |
new TweenParms() | |
.Prop("position", Vector3.zero) | |
.Ease (EaseType.EaseOutBack) | |
); | |
iTween.MoveTo( | |
target, | |
iTween.Hash( | |
"position", Vector3.zero, | |
"time", 1f, | |
"easetype", iTween.EaseType.easeOutBack | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment