Added landing sound

This commit is contained in:
Anuken
2020-04-08 22:06:43 -04:00
parent a241d6f5bb
commit 2a74bb742b
4 changed files with 18 additions and 5 deletions

View File

@@ -43,6 +43,15 @@ public class MusicControl{
darkMusic = Array.with(Musics.game2, Musics.game5, Musics.game7);
}
public void stop(){
silenced = true;
if(current != null){
current.stop();
current = null;
fade = 0f;
}
}
/** Update and play the right music track.*/
public void update(){
if(state.isMenu()){