Avatar
GameTitleScene の中で override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) { if self.atPoint(self.firstTouch).name == "start" { guard let t = touches.first else { return } self.lastTouch = t.location(in: self) let touchPoint = self.atPoint(self.lastTouch) if touchPoint.name == "start" { self.startButton.fillColor = UIColor.clear self.view?.presentScene(GameScene(size: self.size)) } } } のように呼び出しています