Why is there multiple collision calls Sprite Kit Swift
问题 I am building an iOS swift game with collision. The hero is being bombarded by small stars coming from the right side of the screen. Every time a star hits the hero, the score is iterated and the star is removed. But, more than one point is added to the score. Node Set-up: var star = SKSpriteNode(imageNamed: "star") star.size = CGSizeMake(30, 30) star.zPosition = 10 var starPhysicsRect = CGRectMake(star.position.x - star.frame.size.width / 2, star.position.y - star.frame.size.width / 2, star