SpriteFactory.Sprite.SetAnimationEndedCallback
C#: void SetAnimationEndedCallback (string animationName, System.Action callback)
JS: function SetAnimationEndedCallback (animationName : String, callback : System.Action) : void
Description
Assign a callback to run when an animation ends playing even if it has not finished. Use this to take some action after an animation ends playing. This will be called every time an animation finishes, is stopped, or is interrupted by playing another animation..
C#: void SetAnimationEndedCallback (int animationIndex, System.Action callback)
JS: function SetAnimationEndedCallback (animationIndex : int, callback : System.Action) : void
Description
Assign a callback to run when an animation ends playing even if it has not finished. Use this to take some action after an animation ends playing. This will be called every time an animation finishes, is stopped, or is interrupted by playing another animation.
See Also
SetAnimationStartedCallback
SetAnimationFinishedCallback