Skip to content

Instantly share code, notes, and snippets.

@Seasons7
Created December 30, 2014 21:25
Show Gist options
  • Save Seasons7/3bb6168d9c6655b07902 to your computer and use it in GitHub Desktop.
Save Seasons7/3bb6168d9c6655b07902 to your computer and use it in GitHub Desktop.
ccswift20150101
import Foundation
class MainScene: CCNode {
override func onEnter() {
self.userInteractionEnabled = true
super.onEnter()
}
override func touchBegan(touch: CCTouch!, withEvent event: CCTouchEvent!) {
println("touch!!")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment