1
我嘗試下一個代碼,但得到以下錯誤:「一行中的連續語句必須用';'」分隔。我錯在哪裏?SKAction.customActionWithDuration一行中的連續語句必須用';'分隔
let moveLeft = SKAction.customActionWithDuration(0.0, actionBlock: {node: SKNode!, elapsedTime: CGFloat) -> Void in
node.physicsBody?.velocity = CGVectorMake(0.5, 0.5)
})
謝謝!!!你是搖滾樂! – Stillfinder 2015-02-08 19:19:10