How to detect the collision nodes name in skspritekit?

前端 未结 0 1773
迷失自我
迷失自我 2021-01-17 20:00

I would like to detect the nodes name my player node colides with. Is that possible?

func didBegin(_ contact: SKPhysicsContact) {
    
    let collision: UInt         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题