the-crypt/meta/Music.gd
2020-07-24 01:27:07 -05:00

15 lines
381 B
GDScript

extends Node
onready var MainMusic: AudioStreamPlayer = $MainMusic
onready var Ambience: AudioStreamPlayer = $Ambience
func _process(delta):
if Player.current_scene == "res://levels/Campaign/Credits.tscn":
MainMusic.playing = false
Ambience.playing = false
else:
if not MainMusic.playing:
MainMusic.playing = true
if not Ambience.playing:
Ambience.playing = true