This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
defend-together/client/scenes/loader.tscn

20 lines
475 B
Plaintext

[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
script/source = "extends Node
var music = preload(\"res://nodes/MusicManager.tscn\")
var network = preload(\"res://nodes/NetworkManager.tscn\")
func _ready():
var root : Node = get_node(\"/root\")
var m = music.instance()
root.add_child(m)
var n = network.instance()
root.add_child(n)
get_tree().change_scene(\"res://scenes/login.scn\")
"
[node name="Node" type="Node"]
script = SubResource( 1 )