diff --git a/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx b/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx index d4df2a4f7..fefb224eb 100644 --- a/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx +++ b/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx @@ -38,11 +38,6 @@ class FlxAtlasSprite extends FlxAnimate */ public var onAnimationComplete:FlxTypedSignalVoid> = new FlxTypedSignal(); - /** - * Signal dispatched when a looping animation finishes playing - */ - public var onAnimationLoopComplete:FlxTypedSignalVoid> = new FlxTypedSignal(); - var currentAnimation:String; var canPlayOtherAnims:Bool = true; @@ -162,7 +157,6 @@ class FlxAtlasSprite extends FlxAnimate anim.onComplete.add(function() { if (loop) { - onAnimationLoopComplete.dispatch(id); this.anim.play(id, restart, false, startFrame); this.currentAnimation = id; } @@ -307,9 +301,7 @@ class FlxAtlasSprite extends FlxAnimate { if (currentAnimation != null) { - if (looping) onAnimationLoopComplete.dispatch(currentAnimation); - else - onAnimationComplete.dispatch(currentAnimation); + onAnimationComplete.dispatch(currentAnimation); } }