RustHacker/scenes/room.gd
2026-01-17 13:42:34 +11:00

19 lines
570 B
GDScript

extends Control
@export var sell_panel : Inventory
@export var botnet_panel : Inventory
@export var workshop_button : Button
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
Locations.block_moving = sell_panel.filled_slots() > 0 or botnet_panel.filled_slots() > 0
pass
func _on_goto_workshop_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/workshop.tscn")