Starter-Kit-City-Builder/global/event_bus.gd

12 lines
286 B
GDScript

extends Node
signal population_update(count:int)
signal receive_data_from_browser(args)
var current_scene = null
func _ready():
var root = get_tree().root
# Using a negative index counts from the end, so this gets the last child node of `root`.
current_scene = root.get_child(-1)