1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

Remove onAnimationLoopComplete

This commit is contained in:
CheemsAndFriends 2024-09-10 01:11:41 +02:00
parent 8d27a45d17
commit af8fe0c0d2

View file

@ -38,11 +38,6 @@ class FlxAtlasSprite extends FlxAnimate
*/
public var onAnimationComplete:FlxTypedSignal<String->Void> = new FlxTypedSignal();
/**
* Signal dispatched when a looping animation finishes playing
*/
public var onAnimationLoopComplete:FlxTypedSignal<String->Void> = 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,8 +301,6 @@ class FlxAtlasSprite extends FlxAnimate
{
if (currentAnimation != null)
{
if (looping) onAnimationLoopComplete.dispatch(currentAnimation);
else
onAnimationComplete.dispatch(currentAnimation);
}
}