monsterfangen/scenes/game.gd

12 lines
356 B
GDScript

extends Node3D
@onready var ui: UI = $UI
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
# Update the UI when the Inventory (global) changes
Inventory.inventory_changed.connect(ui._update_ui)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass