每次我添加 1 个 SKShapeNode 时,模拟器中显示的节点总数就会增加 2。这是正常行为还是我应该摆脱额外的节点,以及如何?我在 xcode 6.1 和 iOS 8.1
import SpriteKit
class GameScene: SKScene {
override func didMoveToView(view: SKView) {
/* Setup your scene here */
let circle = SKShapeNode(circleOfRadius: 50)
circle.fillColor = UIColor.blackColor()
circle.position = CGPoint(x: self.frame.size.width/2, y:self.frame.size.height/2)
self.addChild(circle)
}
}
谢谢,