duck

duck

Jun 29th, 2010
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Update ()
  2. {  
  3.  
  4.     touch = iPhoneInput.touch[0];
  5.    
  6.     if (touch.phase == iPhoneTouchPhase.Began)
  7.     {
  8.         ///touch began event
  9.     }
  10.    
  11.     if (touch.phase == iPhoneTouchPhase.Moved && detectingMotion == true)
  12.     {
  13.         ////touch moved event
  14.     }
  15.    
  16.     if (touch.phase == iPhoneTouchPhase.Ended)
  17.     {
  18.         ///touch ended event
  19.     }      
  20.        
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment