Rooms can now be locked down and open when all enemies are killed
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user