Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- libc++abi.dylib: terminating with uncaught exception of type NSException
- (lldb)
- class Settings: SKScene{
- let backToMenuButton = SKSpriteNode(imageNamed: "BlackArrow1.0")
- override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
- for touch in touches{
- let locationUser = touch.location(in: self)
- if atPoint(locationUser) == backToMenuButton {
- let transition = SKTransition.crossFade(withDuration: 0.2)
- let mainMenu1 = mainMenu(size: self.size)
- self.view?.presentScene(mainMenu1, transition: transition)
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment