school-game/godot/StartScreen.gd

15 lines
237 B
GDScript3
Raw Normal View History

2022-11-11 13:20:08 +00:00
extends CanvasLayer
@onready var game_time = get_node("/root/GameTimer")
2022-11-11 13:20:08 +00:00
func _ready():
pass
func _on_StartGame_pressed():
game_time.paused = 0
$"%StartScreen".visible = false
$"%UI".visible = true
$"%Landscape".visible = true