Hi, I am new to iOS development and especially to touch control. I would like to make simple flicking marbles game. I looked at the documentation on TouchPhase, but I'm not sure how to do it. Thanks for any advice.
Here's some touch phase code I used. I only had to determine if the swipe went left, right, up, or down. You'll have to sort out the precise direction of the swipe, but this should give you a head start. Code (csharp): foreach (Touch touch in Input.touches) { if (touch.phase == TouchPhase.Began) { if (_paused == false) { downpoint = Input.mousePosition; } } if (touch.phase == TouchPhase.Ended) { if (_paused == false) { uppoint = Input.mousePosition; } } }