我正在试图弄清楚如何转换类类型,以便我可以从我的SKScene(自我)转到我的SCNScene即GamePlay。并且基本上执行场景正常场景转换。
let scene = GamePlay(coder:NSCoder())
let transition = SKTransition.crossFadeWithDuration(1)
view?.presentScene(scene, transition: transition)
答案 0 :(得分:0)
尝试将scene
投射到SKScene
。
let scene = GamePlay(coder:NSCoder())
let transition = SKTransition.crossFadeWithDuration(1)
if let skScene = scene as? SKScene {
view?.presentScene(skScene, transition: transition)
}