summaryrefslogtreecommitdiff
path: root/Scenes/Door.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Scenes/Door.gd')
-rw-r--r--Scenes/Door.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/Scenes/Door.gd b/Scenes/Door.gd
index 2918d8b..c366514 100644
--- a/Scenes/Door.gd
+++ b/Scenes/Door.gd
@@ -6,6 +6,10 @@ export(bool) var is_open = false
onready var mesh = $Mesh
+func _ready():
+ ._ready()
+ add_to_group("doors")
+
func cor_open(args : Array):
var duration = args[0]
var time = 0