我一直在尝试向我的GameScene添加联系人委托(delegate):self.physicsWorld.contactDelegate=ContactManager()但是,我通过将联系人委托(delegate)(ContactManager类)放在单独的类中来执行此操作,以避免在我的GameScene上有那么多代码。这是我的联系人代表:classContactManager:NSObject,SKPhysicsContactDelegate{funcdidBegin(_contact:SKPhysicsContact){print("theytouched!")}}问题在于,当对