, , SKReferenceNode. SKReferenceNode , , , , .
, (x = -1500), , scene.sks, , . sks, . , , , sks , CGPoint (x: 0, y: 0) . , , , , . , , SKReferenceNode, .
, sks !
- , , sks, . , sks , sks .
let path = Bundle.main.path(forResource: "TeamDialog", ofType: "sks")
let dialogScene = SKReferenceNode (url: URL (fileURLWithPath: path!))
if let teamDialog = dialogScene.childNode(withName: "//teamDialog") as? TeamDialog {
teamDialog.setup(scene: self)
teamDialog.position = CGPoint(x: 0, y: 0)
dialogScene.zPosition = 5000
addChild(dialogScene)
}