Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lock_state_changed signal to CogitoDoor #177

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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