Question by 
               GiLA94 · Jan 19, 2016 at 08:25 AM · 
                touchtouch controlstouchphaseinput.touchtouchcount  
              
 
              TouchPhase.Began hold problem
Hi, I have this code to detect if my object is touched:
 if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began) {
When the object is touched it is destroyed and a new one is spawned. The problem is that if the new one is spawned in the same position of the finger touch, and the finger didn't move, it detects the collision. How can I solve this? I tried to set TouchPhase.Ended but it didn't work. Using a Sleep didn't work either because the "If" condition is still true if the finger isn't moved.
               Comment
              
 
               
              Your answer
 
 
             