You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jan-Ole Schümann edited this page Jun 3, 2017
·
5 revisions
Keyword: onComplete
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
}