Sharing information between ViewContollers
<p>I am developing a game using Sprite and the game works perfectly fine. I am trying to add in a feature that allows you to change things on that GameView. But the buttons for the feature are on a different ViewController. How would I be able to have the code be implemented into a different view controller?</p>

<p>This is the code i want the button to implement</p>

<pre><code>        for touch: AnyObject in touches {
        // Get the location of the touch in this scene
        let location = touch.location(in: self)
        // Check if the location of the touch is within the button's bounds
        if button.contains(location) {
            Ghost.texture = SKTexture(imageNamed:"Ghost2")
        }
    }
</code></pre>

<p>And here is the button</p>

<pre><code>@IBAction func button(_ sender: AnyObject) {
</code></pre>

<p>}
But the button is on ViewController1 and the object that i want to change is on ViewController2 (GemScene)</p>