Created
February 28, 2019 18:55
-
-
Save alcidesjunior/ffa0c98817bb472883843ab1a371ab22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) { | |
for touch in touches{ | |
if objTouched != nil{ | |
//reaproveitando a variavel utilizada em touchesBegan | |
if touch as UITouch == objTouched!{ | |
let location = touch.location(in: self) | |
var touchedNode = nodes(at: location) | |
touchedNode.first?.position = location | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment