baobao
10/25/2016 - 5:26 PM

http://www.shibuya24.info/entry/2016/10/18/223000

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));