diff --git a/Characters/Worker/Worker.gd b/Characters/Worker/Worker.gd index e855064..794d857 100644 --- a/Characters/Worker/Worker.gd +++ b/Characters/Worker/Worker.gd @@ -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