mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +00:00
stop time travel and alarm sounds
This commit is contained in:
parent
b21ac340a8
commit
cdb801445c
1 changed files with 9 additions and 0 deletions
|
|
@ -1551,6 +1551,15 @@ class MarbleWorld extends Scheduler {
|
||||||
this.finishPitch = this.marble.camera.CameraPitch;
|
this.finishPitch = this.marble.camera.CameraPitch;
|
||||||
displayAlert("Congratulations! You've finished!");
|
displayAlert("Congratulations! You've finished!");
|
||||||
this.schedule(this.timeState.currentAttemptTime + 2, () -> cast showFinishScreen());
|
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