运行 完成:在序列或一组 SKAction 之后

Run completion: after sequence or group of SKActions

我无法弄清楚我在以下语法中做错了什么,无法完成 运行。

  spriteWhite.run(SKAction.group([moveRight, swipeRight],
       completion: {self.doThisFunction(withThisValue)}))

错误是:

Extra argument "completion" in call.

尝试改变:

spriteWhite.run(SKAction.group([moveRight, swipeRight],
           completion: {self.doThisFunction(withThisValue)}))

与:

spriteWhite.run(SKAction.group([moveRight, swipeRight]),
       completion: { self.doThisFunction(withThisValue) })

问题是由于语法错误:第二个方括号后的圆括号关闭 SKAction 定义。