This commit is contained in:
parent
8bc640e98c
commit
64d835e71d
@ -6,7 +6,6 @@ var _interactArea: Area
|
||||
func _ready():
|
||||
#Logger.set_logger_level(Logger.LOG_LEVEL_FINE)
|
||||
|
||||
# setup collisions with player
|
||||
var _interactArea = get_node("InteractArea") as Area
|
||||
assert(null != _interactArea)
|
||||
_interactArea.connect("area_entered", self, "_on_area_entered")
|
||||
@ -19,5 +18,6 @@ func _process(_delta):
|
||||
|
||||
func _on_area_entered (area: Area):
|
||||
if area.is_in_group("FactoryEntry"):
|
||||
# TODO: despawn
|
||||
# despawn
|
||||
queue_free()
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user