我正在尝试使用commande行签署我的OSX应用程序:
...
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
guard let touch = touches.first else { return }
let touchLocation = touch.location(in: self)
let touchedNode = self.atPoint(touchLocation)
if(touchedNode.name == "enemy" && touchNode is Enemy){
// Yes, I'm absolutely sure this is an enemy node..
let enemy = touchedNode as! Enemy
print(enemy.force)
}
}
问题是我在我生成的应用程序中找不到任何名为“Framewokrs”的文件夹。 你有什么想法吗? 谢谢