Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active February 9, 2025 11:48
Show Gist options
  • Select an option

  • Save baobao/d32c800ce83b27d90586b178bdc09677 to your computer and use it in GitHub Desktop.

Select an option

Save baobao/d32c800ce83b27d90586b178bdc09677 to your computer and use it in GitHub Desktop.
void Start()
{
var tween = transform.DOLocalMoveX (2f, 1f)
.OnStart (() => Debug.Log ("OnStart"))
.OnPlay (() => Debug.Log ("OnPlay"))
.OnKill (() => Debug.Log ("OnKill"))
.OnComplete (() => Debug.Log ("OnComplete"))
.OnPause (() => Debug.Log ("OnPause"))
.OnRewind (() => Debug.Log ("OnRewind"))
.OnStepComplete (() => Debug.Log ("OnStepComplete"))
.OnUpdate (() => Debug.LogWarning ("OnUpdate"))
.OnWaypointChange (x => Debug.Log ("OnWaypointChange" + x));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment