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

21 lines
520 B
GDScript

extends Control
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
PlayerInventory.hide()
Clock.hide()
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_play_button_pressed() -> void:
PlayerInventory.show()
Clock.show()
Locations.show()
Locations.current_location = Locations.Location.workshop
get_tree().change_scene_to_file("res://scenes/workshop.tscn")