prototype vibe
This commit is contained in:
@@ -4,6 +4,7 @@ extends StaticBody3D
|
||||
@export var is_exit: bool = false
|
||||
|
||||
var active := false
|
||||
var dungeon_variant: int = 0
|
||||
|
||||
func _ready() -> void:
|
||||
if not is_exit:
|
||||
@@ -28,6 +29,7 @@ func _on_gate_area_body_entered(body: Node3D) -> void:
|
||||
PlayerData.returning_from_dungeon = true
|
||||
else:
|
||||
PlayerData.portal_position = global_position
|
||||
GameState.last_dungeon_variant = dungeon_variant
|
||||
call_deferred("_change_scene")
|
||||
|
||||
func _change_scene() -> void:
|
||||
|
||||
Reference in New Issue
Block a user