hurrmmm/godot/Button.gd

9 lines
156 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://main.tscn")
2023-11-12 14:29:55 -07:00
func _input(event):
if event.is_action("charge"):
_on_pressed()