godot-singleton/main.gd

13 lines
274 B
GDScript

extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
print("main")
get_tree().change_scene_to_file("res://not-main.tscn")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass