extends Resource class_name AttachmentResource @export var attachment_stats: AttachmentStats @export var attachment_scene: PackedScene func instantiate(parent: Node3D)->Attachment: var attachment_instance = attachment_scene.instantiate() as Attachment attachment_instance.init_Attachment(attachment_stats) parent.add_child(attachment_instance) return attachment_instance