Skip to content

Commit

Permalink
Merge pull request #177 from ac-arcana/main
Browse files Browse the repository at this point in the history
Add lock_state_changed signal to CogitoDoor
  • Loading branch information
Phazorknight authored Apr 30, 2024
2 parents 2ee8503 + 2307b3a commit 41a41fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions COGITO/CogitoObjects/Cogito_Door.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extends Node3D

signal object_state_updated(interaction_text:String)
signal door_state_changed(is_open:bool)
signal lock_state_changed(is_locked:bool)
signal damage_received(damage_value:float)

#region Variables
Expand Down Expand Up @@ -160,6 +161,7 @@ func unlock_door():
is_locked = false
interaction_text = interaction_text_when_closed
object_state_updated.emit(interaction_text)
lock_state_changed.emit(is_locked)


func open_door(interactor: Node3D):
Expand Down

0 comments on commit 41a41fc

Please sign in to comment.