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