-
Notifications
You must be signed in to change notification settings - Fork 1
delay
Jan-Ole Schümann edited this page Jun 3, 2017
·
2 revisions
Defines the time until the tween starts playing
Parameter: float
Example: "delay", 1.5f
In the example below, TweenSharp waits 1.5 seconds before starting to playback the tween which takes 5 seconds. The tween is finished after a total of 6.5 seconds.
TweenSharp tween = new TweenSharp(gameObject, 5f, new
{
x = 8f,
delay = 1.5f
});