duck

duck

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