mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-08-30 18:34:51 +00:00
Compare commits
2 commits
51d0774b4d
...
1967348281
Author | SHA1 | Date | |
---|---|---|---|
|
1967348281 | ||
|
c99fd24efa |
|
@ -59,6 +59,16 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
|
|||
}
|
||||
}
|
||||
|
||||
override public function destroy():Void
|
||||
{
|
||||
if (analyzer != null)
|
||||
{
|
||||
analyzer.cleanup();
|
||||
}
|
||||
|
||||
super.destroy();
|
||||
}
|
||||
|
||||
public function initAnalyzer():Void
|
||||
{
|
||||
if (snd == null) return;
|
||||
|
@ -85,7 +95,12 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
|
|||
public function dumpSound():Void
|
||||
{
|
||||
snd = null;
|
||||
analyzer = null;
|
||||
|
||||
if (analyzer != null)
|
||||
{
|
||||
analyzer.cleanup();
|
||||
analyzer = null;
|
||||
}
|
||||
}
|
||||
|
||||
var visTimer:Float = -1;
|
||||
|
|
|
@ -37,6 +37,16 @@ class CharSelectGF extends FlxAtlasSprite implements IBPMSyncedScriptedClass
|
|||
switchGF("bf");
|
||||
}
|
||||
|
||||
override public function destroy():Void
|
||||
{
|
||||
if (analyzer != null)
|
||||
{
|
||||
analyzer.cleanup();
|
||||
}
|
||||
|
||||
super.destroy();
|
||||
}
|
||||
|
||||
override public function update(elapsed:Float):Void
|
||||
{
|
||||
super.update(elapsed);
|
||||
|
|
Loading…
Reference in a new issue