補完を実行するために、次の構文で何が間違っているのかわかりません。
spriteWhite.run(SKAction.group([moveRight, swipeRight],
completion: {self.doThisFunction(withThisValue)}))
エラーは次のとおりです。
呼び出しに余分な引数 "completion" があります。
補完を実行するために、次の構文で何が間違っているのかわかりません。
spriteWhite.run(SKAction.group([moveRight, swipeRight],
completion: {self.doThisFunction(withThisValue)}))
エラーは次のとおりです。
呼び出しに余分な引数 "completion" があります。
変更してみてください:
spriteWhite.run(SKAction.group([moveRight, swipeRight],
completion: {self.doThisFunction(withThisValue)}))
と:
spriteWhite.run(SKAction.group([moveRight, swipeRight]),
completion: { self.doThisFunction(withThisValue) })
この問題は、構文エラーによるものです。2 番目の大括弧の後の括弧でSKAction
定義を閉じます。