tweaks to playlist loader, working on preventing reentry to levels in round
This commit is contained in:
@@ -7,6 +7,7 @@ class_name Portal
|
||||
@export var scene_thumbnail : Texture2D
|
||||
|
||||
var active = false
|
||||
var round_id : Vector2
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
@@ -20,6 +21,7 @@ func _process(delta: float) -> void:
|
||||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
if active:
|
||||
GameGlobals.no_reentry_portals.append(round_id)
|
||||
#Let the Bounds detector know player is exiting
|
||||
SignalBus.emit_signal("player_exiting_tree")
|
||||
#Set incoming gamemode
|
||||
|
||||
Reference in New Issue
Block a user