renamed the method in BackgroundMusic
renamed the method toogleMusic to toggleMusic.
This commit is contained in:
parent
f6f87c4f5d
commit
9dc3984f35
@@ -111,7 +111,7 @@ public void pause(AudioNode audioNode) {
|
|||||||
/**
|
/**
|
||||||
* Toggle Method to control the music to switch it on or off
|
* Toggle Method to control the music to switch it on or off
|
||||||
*/
|
*/
|
||||||
public void toogleMusic() {
|
public void toggleMusic() {
|
||||||
this.musicEnabled = !this.musicEnabled;
|
this.musicEnabled = !this.musicEnabled;
|
||||||
if (musicEnabled) {
|
if (musicEnabled) {
|
||||||
switch (lastNodePlayed){
|
switch (lastNodePlayed){
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ private void adjustSoundVolume(double volume) {
|
|||||||
* this method toggles the background music on and off
|
* this method toggles the background music on and off
|
||||||
*/
|
*/
|
||||||
private void toggleMusic() {
|
private void toggleMusic() {
|
||||||
app.getBackgroundMusic().toogleMusic();
|
app.getBackgroundMusic().toggleMusic();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user