mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-15 11:22:55 +00:00
Remove onAnimationLoopComplete
This commit is contained in:
parent
8d27a45d17
commit
af8fe0c0d2
|
@ -38,11 +38,6 @@ class FlxAtlasSprite extends FlxAnimate
|
||||||
*/
|
*/
|
||||||
public var onAnimationComplete:FlxTypedSignal<String->Void> = new FlxTypedSignal();
|
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 currentAnimation:String;
|
||||||
|
|
||||||
var canPlayOtherAnims:Bool = true;
|
var canPlayOtherAnims:Bool = true;
|
||||||
|
@ -162,7 +157,6 @@ class FlxAtlasSprite extends FlxAnimate
|
||||||
anim.onComplete.add(function() {
|
anim.onComplete.add(function() {
|
||||||
if (loop)
|
if (loop)
|
||||||
{
|
{
|
||||||
onAnimationLoopComplete.dispatch(id);
|
|
||||||
this.anim.play(id, restart, false, startFrame);
|
this.anim.play(id, restart, false, startFrame);
|
||||||
this.currentAnimation = id;
|
this.currentAnimation = id;
|
||||||
}
|
}
|
||||||
|
@ -307,9 +301,7 @@ class FlxAtlasSprite extends FlxAnimate
|
||||||
{
|
{
|
||||||
if (currentAnimation != null)
|
if (currentAnimation != null)
|
||||||
{
|
{
|
||||||
if (looping) onAnimationLoopComplete.dispatch(currentAnimation);
|
onAnimationComplete.dispatch(currentAnimation);
|
||||||
else
|
|
||||||
onAnimationComplete.dispatch(currentAnimation);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue