PneumaticPlaything/Scripts/CameraButton.gd
Persephone Bubblegum-Holiday dacbcc3835 Revert "empty"
This reverts commit 46e1de9791.
2025-07-25 18:49:40 -07:00

10 lines
217 B
GDScript

extends Control
@export var camera : String
@export var base_scene_path : String
func _ready() -> void:
$Button.text = camera
func _on_button_pressed() -> void:
get_node(base_scene_path + camera).current = true;