- Home /
Sometimes, a touch can not be determined
hi.
I have that sometimes, not following the transition to "1 of if". Sometimes you do not work at intervals, even if the touch in a row, go well.
Even when you do not work, 「Debug.Log ("touchPhase =" + Input.GetTouch (i). Phase)」 When you check in, but actually being touched, I do not transition to the "1 of if".
Why. . . ?
 var trail : Transform ;
 var clone : Transform ;
 var Zpoz : float = 50.0 ;
 
 var TouchZone : GUITexture ;
 var touch : Touch ;
 //var i : int ;
 var touchid : int ;
 var camtag : GameObject;
 var parent : GameObject;
 
 function Start () {
     //camtag = GameObject.FindWithTag("TouchCamera");
 }
 
 function Update () {
 
         var count = Input.touchCount;
         for(var i : int = 0;i < count; i++)
         {
 //Debug.Log("touchPhase=" + Input.GetTouch (i).phase);
 //Debug.Log("id= " + Input.GetTouch (i).fingerId);
 
 // ↓↓↓↓↓ 1 of if !!!!!!!!!!!!!!!!!
          if ( Input.touchCount > 0 && Input.GetTouch (i).phase == TouchPhase.Began ) {
 // ↑↑↑↑↑ 1 of if !!!!!!!!!!!!!!!!!
          var fingerPos : Vector3 = Input.GetTouch (i).position ;
          fingerPos.z = Zpoz;
 
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                