-
Notifications
You must be signed in to change notification settings - Fork 1
onComplete
Jan-Ole Schümann edited this page May 21, 2017
·
5 revisions
Defines the method which is called after the tween has finished playing.
Parameter: Action or Action
Example: "onComplete", onTweenCompete
In this example, the method "onTweenComplete" is called after 5 seconds when the tween has finished playing.
Action onTweenComplete= this.onTweenComplete;
tweenSharp1 = new TweenSharp(planet1, 5f, new Dictionary<string, object>()
{
{"x", 8f},
{"onComplete", onTweenComplete}
} );
private void onTweenComplete()
{
// do something here
}