Closed ghost closed 7 years ago
I needed a way to check what was the current animation of a SpriteAnimationController
example:
if(SpriteAnimationController.Animation == null || SpriteAnimationController.Animation.Name != "run") SpriteAnimationController.PlayAnimation(Sprite["run"]);
I'm not sure if that's the best way to do it, but that's the only solution i found
I'm fine with adding this, but given that the class already has a GetFrame() method, I think it would be best for this to be a corresponding GetAnimation() method instead of a property for consistency.
GetFrame()
GetAnimation()
Done 😄
I needed a way to check what was the current animation of a SpriteAnimationController
example:
I'm not sure if that's the best way to do it, but that's the only solution i found