Added lever door. Added lever sound

This commit is contained in:
2026-03-19 23:28:38 +03:00
parent 6535f0e032
commit c48ab801da
11 changed files with 151 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
extends Door
func toggle() -> void:
if _is_closed():
_open()
else:
_close()
func _on_area_entered(_body: Node2D) -> void:
if _is_closed():
SoundManager.play_sfx_stream(SoundManager.sfx_stream_door_locked, global_position)
func _on_area_exited(_body: Node2D) -> void:
pass