更新到 swift3 后,注释行返回错误:Property 'entity' with type 'GKEntity!' (又名“ImplicitlyUnwrappedOptional”)不能覆盖类型为“GKEntity?”的属性
import SpriteKit
import GameplayKit
class EntityNode: SKNode {
weak var entity: GKEntity! // error here
}
在升级之前它运行良好。知道什么是错的以及如何解决这个问题吗?