Guest User

Untitled

a guest
Jul 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. void Update() {
  2. if(Input.touchcount == 1)
  3. {
  4. Touch touch = Input.GetTouch(0);
  5.  
  6. if(touch.phase == TouchPhase.Began)
  7. {
  8. //Move
  9. }
  10. else if(touch.phase == TouchPhase.Stationary)
  11. {
  12. //Move
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment