16 lines
314 B
GDScript
16 lines
314 B
GDScript
extends Node2D
|
|
|
|
onready var startGameButton = $Sprite/MarginContainer/StartGameButton
|
|
|
|
func _ready():
|
|
startGameButton.grab_focus()
|
|
|
|
|
|
func _process(delta):
|
|
if startGameButton.is_hovered():
|
|
startGameButton.grab_focus()
|
|
|
|
|
|
func _on_StartGameButton_pressed():
|
|
get_tree().change_scene("res://Scene/TestScene.tscn")
|