I use this touch.tapCount in touchesBegan and try to print the value but it never return 2.
Any idea why? It can be 1,3,,5,7,9, .... but not 2,4,6,8,10, ...
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
if let touch = touches.first {
//print(touch.tapCount)
if ((touch.tapCount) == 1) {
player.animatedPlayer()
jump = true
}
}
}