16 lines
301 B
GDScript
16 lines
301 B
GDScript
extends TileMapLayer
|
|
|
|
func disable_secret_door():
|
|
visible = false
|
|
collision_enabled = false
|
|
|
|
func enable_secret_door():
|
|
visible = true
|
|
collision_enabled = true
|
|
|
|
func _on_switch_switch_activated() -> void:
|
|
disable_secret_door()
|
|
|
|
func _on_switch_switch_deactivated() -> void:
|
|
enable_secret_door()
|