summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Objects/BaseDoor.gd
blob: 7a6c8d40f35fb4cdc003eebc22beea4682cd7962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extends StaticBody2D


@export var enabled: bool = true


func _ready():
	if enabled:
		enable()
	else:
		disable()


func enable():
	visible = true
	process_mode = Node.PROCESS_MODE_INHERIT


func disable():
	visible = false
	process_mode = Node.PROCESS_MODE_DISABLED