title: Swift Spritekit count touches
body: <p>I'm trying to have several actions on one node.</p>
  
  <p>so for example on the first touch on this node, the first action should run. On the second touch: the second action should run.</p>
  
  <p>below a not working example of the code with touches.count.</p>
  
  <pre><code>override func touchesBegan(touches: Set&lt;NSObject&gt;, withEvent event: UIEvent) {
      for touch: AnyObject in touches {
          let location = touch.locationInNode(self)
          let node = self.nodeAtPoint(location)
  
          if node == myNode {
              if touches.count == 1 {
                  action1()
              }
              if touches.count == 2 {
                  action2()
              }
              if touches.count == 3 {
                  action3()
              }
          }
      }
  }
  </code></pre>