Skip to content

onComplete

Jan-Ole Schümann edited this page May 21, 2017 · 5 revisions

Keyword: onComplete

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()
{
	tweenSharp1.Paused = true;
}
Clone this wiki locally