hurrmmm/godot/Button.gd

9 lines
192 B
GDScript3
Raw Normal View History

2023-11-12 14:29:55 -07:00
extends Button
func _on_pressed():
get_tree().change_scene_to_file("res://tests/control_scheme/test_basic_controls.tscn")
func _input(event):
if event.is_action("charge"):
_on_pressed()