Rooms can now be locked down and open when all enemies are killed

This commit is contained in:
derek
2024-11-07 11:45:19 -06:00
parent 168963163a
commit ac5c5210ba
6 changed files with 109 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
extends Node
signal player_entered_room()
signal player_left_room()
signal room_entered()
signal room_exited()
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@@ -13,8 +13,8 @@ func _process(delta: float) -> void:
func _on_body_entered(body: Node3D) -> void:
if body.is_in_group("player"):
emit_signal("player_entered_room")
emit_signal("room_entered")
func _on_body_exited(body: Node3D) -> void:
if body.is_in_group("player"):
emit_signal("player_left_room")
emit_signal("room_exited")