mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
stop time travel and alarm sounds
This commit is contained in:
parent
ef546d375a
commit
774836dbd0
1 changed files with 9 additions and 0 deletions
|
|
@ -1185,6 +1185,15 @@ class MarbleWorld extends Scheduler {
|
|||
this.finishPitch = this.marble.camera.CameraPitch;
|
||||
displayAlert("Congratulations! You've finished!");
|
||||
this.schedule(this.timeState.currentAttemptTime + 2, () -> cast showFinishScreen());
|
||||
// Stop the ongoing sounds
|
||||
if (timeTravelSound != null) {
|
||||
timeTravelSound.stop();
|
||||
timeTravelSound = null;
|
||||
}
|
||||
if (alarmSound != null) {
|
||||
alarmSound.stop();
|
||||
alarmSound = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue