title: How i get back to old scene in SpriteKit?
body: <p>How can I go to old scene in SpriteKit ( in Swift ) ? I am in scene1 , i paused it and i move to scene 2 and I want to get back to scene1 and i to resume it . I don't want to recreate it again .
  Thanks.</p>
  
  <p>EDIT :</p>
  
  <p>So , I tried this :
  In secondScene class i put a oldScene SKScene property and a computed setOldScene property:</p>
  
  <pre><code>class SecondScene: SKScene {
  
  var oldScene:SKScene?
  var setOldScene:SKScene? {
                            get { return oldScene }
                            set { oldScene = newValue }
                           }
  
  init(size: CGSize) {
  
      super.init(size: size)
  
      /* Setup my scene here */
  
  }}
  </code></pre>
  
  <p>And then , in FirstScene class ( where i have ONE moving ball ) , in touchBegan method i have this</p>
  
  <pre><code>override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
      /* Called when a touch begins */
  
      for touch: AnyObject in touches {
  
          let location = touch.locationInNode(self)
  
          if(self.view.scene.paused) {
              self.view.scene.paused = false
          }
          else {
              self.view.scene.paused = true
          }
  
          var secondScene = SecondScene(size: self.frame.size)
          secondScene.setOldScene = self.scene
  
          if !transition { self.view.presentScene(secondScene, transition: SKTransition.doorsOpenHorizontalWithDuration(2)) ; transition = true }
  
  
  
      }
  }
  </code></pre>
  
  <p>But , when i call <code>self.view.presentScene(oldScene)</code> in SecondScene class i move yo first class and i have TWO balls that moving :-??</p>
  
  <p>I can't use class variable , Xcode not suport yet .</p>