feat: `SpriteComp.getCurAnim()` for get the current animation data
lajbel opened this issue · comments
As title says, there should be a method to get all animation data, for example you can use SpriteComp.curAnim()
to get the current animation name, but you can't get if the animation is pingpong
, speed
or other props
Also would be good to deprecate SpriteComp.curAnim()
, because will be a shorthand of SpriteComp.getCurAnim().name