override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
for touch: UITouch in touches {
enumerateChildNodes(withName: "object") { (object, stop) in
if //Условие {
object.removeFromParent()
}
}
}
}