seems like a decent restore before I broke everything earlier
This commit is contained in:
@@ -2,6 +2,7 @@ extends Node
|
||||
|
||||
@onready var playlist_generator: Control = $"../Playlist Generator"
|
||||
|
||||
var round_id = 2
|
||||
var portals = []
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
@@ -11,15 +12,10 @@ func _ready() -> void:
|
||||
for i in get_tree().current_scene.get_children():
|
||||
if i.is_in_group("portal"):
|
||||
portals.append(i)
|
||||
print("PORTALS")
|
||||
|
||||
var id = 0
|
||||
for i in portals:
|
||||
i.scene_path = str(GameGlobals.current_match[0][id]["map"])
|
||||
i.scene_name = str(GameGlobals.current_match[0][id]["map"])
|
||||
i.scene_path = str(GameGlobals.current_match[round_id][id]["level_path"])
|
||||
i.scene_name = str(GameGlobals.current_match[round_id][id]["level_name"])
|
||||
i.level_gamemode = load(GameGlobals.current_match[round_id][id]["gamemode_path"])
|
||||
id += 1
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
print("CURRENT MATCH ",GameGlobals.current_match[0])
|
||||
|
||||
Reference in New Issue
Block a user