2020-07-23 22:36:21 -05:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
onready var MainMusic: AudioStreamPlayer = $MainMusic
|
|
|
|
onready var Ambience: AudioStreamPlayer = $Ambience
|
|
|
|
|
|
|
|
func _process(delta):
|
2020-07-24 01:27:07 -05:00
|
|
|
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
|