我想我的SKSpritenodes放大(放大)时,他们被点击和拖动在屏幕上。当用户删除触摸输入时,他们需要缩小到最后一个位置。这是我现在用来实现这个效果的代码:
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
for touch in touches {
let location = touch.location(in: self)
let card = atPoint(location) as? Card
if card?