mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-07 05:02:04 +02:00
toggle music button to scene
This commit is contained in:
parent
678b42c9b7
commit
e8895f8137
5 changed files with 37 additions and 19 deletions
scenes
|
@ -65,10 +65,5 @@ func reload():
|
|||
|
||||
|
||||
|
||||
func toggle_music():
|
||||
var music = game.find_node("Music")
|
||||
if music.volume_db > -20:
|
||||
music.volume_db -= 100
|
||||
else:
|
||||
music.volume_db += 100
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue