Chelimbalo/scripts/debug/inventory_preview.gd
2025-11-28 18:59:23 +05:00

11 lines
234 B
GDScript

extends Label
@export var inventory: WeaponSystem
func _process(_delta: float) -> void:
var weapons = ""
for child in inventory.get_children():
if child is WeaponSubStateMachine:
weapons += child.name + ", "
text = weapons