Guest User

Untitled

a guest
Nov 13th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. libc++abi.dylib: terminating with uncaught exception of type NSException
  2. (lldb)
  3.  
  4. class Settings: SKScene{
  5. let backToMenuButton = SKSpriteNode(imageNamed: "BlackArrow1.0")
  6.  
  7. override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
  8. for touch in touches{
  9. let locationUser = touch.location(in: self)
  10. if atPoint(locationUser) == backToMenuButton {
  11. let transition = SKTransition.crossFade(withDuration: 0.2)
  12. let mainMenu1 = mainMenu(size: self.size)
  13. self.view?.presentScene(mainMenu1, transition: transition)
  14. }
  15. }
  16. }
  17. }
Add Comment
Please, Sign In to add comment