title: Access buttons,labels and uiimageviews from GameViewController to GameScene
body: <p>In my GameViewController I have the buttons labels and everything setup. Under viewDidLoad() I have set the labels and everything to <code>.hidden = true</code> and my gameOver stuff is on my GameScene file and I cannot set the buttons labels to <code>.hidden = true</code>. The button is called backToMenu and if I type it anywhere in the GameViewController it recognises it but when I try to type <code>backToMenu.hidden = false</code> in GameScene it gives me an error. Is there any way I could my them accessible in the GameScene as well?</p>
  
  <blockquote>
    <p>GameScene Code:</p>
  </blockquote>
  
  <pre><code>func gameOver() {
  
          bigBox.hidden = false
          backToMenu.hidden = false
          scoreLabel.hidden = false
  
          var alrentSound = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("MenuSelect", ofType: "mp3")!)
  
          AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback, error: nil)
          AVAudioSession.sharedInstance().setActive(true, error: nil)
  
          var error: NSError?
          screenTapped = AVAudioPlayer(contentsOfURL: alrentSound, error: &amp;error)
          screenTapped.prepareToPlay()
          screenTapped.stop()
  
          square1.removeFromParent()
          wallGen.stopWalls()
          //diamondGen.stopDiamonds()
          movingGround.stop()
          square1.stop()
          //square2.stop()
  
  
          // save current points label value
          let pointsLabel = childNodeWithName("pointsLabel") as! PPPointsLabel
          let highscoreLabel = childNodeWithName("highscoreLabel") as! PPPointsLabel
  
  
          if highscoreLabel.number &lt; pointsLabel.number {
              highscoreLabel.setTo(pointsLabel.number)
  
              let defaults = NSUserDefaults.standardUserDefaults()
              defaults.setInteger(highscoreLabel.number, forKey: "highscore")
          }
  
      }
  </code></pre>
  
  <blockquote>
    <p>GameVieController Code:</p>
  </blockquote>
  
  <pre><code>@IBOutlet weak var bigBox: UIImageView!
      @IBOutlet weak var backToMenu: UIButton!
      @IBOutlet weak var scoreLabel: UILabel!
  
  
  
      @IBAction func backToMenuButton(sender: AnyObject) {
  
          let storyboard = UIStoryboard(name: "Main", bundle: nil)
          let vc = storyboard.instantiateViewControllerWithIdentifier("MainMenuViewController") as! UIViewController
          self.dismissViewControllerAnimated(true, completion: nil)
  
          var alrentSound = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("MenuSelect", ofType: "mp3")!)
  
          AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback, error: nil)
          AVAudioSession.sharedInstance().setActive(true, error: nil)
  
          var error: NSError?
          screenTapped = AVAudioPlayer(contentsOfURL: alrentSound, error: &amp;error)
          screenTapped.prepareToPlay()
          screenTapped.play()
  
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          bigBox.hidden = true
          backToMenu.hidden = true
          scoreLabel.hidden = true
  
  
          // Configure the view
          let skView = view as! SKView
  
  
          // store a ref
         // gameScene.gameDelegate = self
  
          // Create and configure the scene
          gameScene = GameScene(size: skView.bounds.size)
          gameScene?.scaleMode = .AspectFill
  
          // Present the scene
          skView.presentScene(gameScene)
  }
  </code></pre>