Workers, lighting, and loading

This commit is contained in:
2020-05-16 17:05:44 -04:00
parent 7528cba7d7
commit a26da07f43
61 changed files with 905 additions and 24 deletions

View File

@ -0,0 +1,19 @@
extends Node2D
export var load_on_start = false
export var music : AudioStream
func _ready():
if load_on_start:
load_zone()
else:
unload_zone()
func load_zone():
if $"/root/MusicManager".stream != music:
$"/root/MusicManager".play_stream(music)
show()
func unload_zone():
hide()