【发布时间】:2015-07-06 14:22:36
【问题描述】:
更新到 Swift 2.0 后,这不再有效:
if contact.bodyA != nil && contact.bodyB != nil {
返回:
Binary operator '&&' cannot be applied to two Bool operands
我尝试使用嵌套的 if 语句分别对每个实体进行 nil 检查,但您似乎无法再检查物理实体...
想法?
【问题讨论】:
标签: swift null skphysicsbody swift2