- Home /
 
               Question by 
               supertacoman12 · Aug 03, 2014 at 12:23 AM · 
                iosobjectmobile  
              
 
              Getting errors when telling an object move a direction upon touch
I have a script and I get errors when I compile it. here is the code
 if (Input.touchCount == 1) 
 {
     var touch : Touch = Input.GetTouch(0);
     if (touch.phase == TouchPhase.Began) 
     {
         transform.position, Quaternion.Euler(0,0,-90);
     }
   
 }
 
               Comment
              
 
               
              I assume this is being executed in Update()? One problem is that this line is meaningless:
 transform.position, Quaternion.Euler(0,0,-90);
I don't know what you want to happen, so it is hard to give you a fix. Try this to get you started:
  transform.Translate(0,0,3 * Time.deltaTime);
Your answer
 
 
             Follow this Question
Related Questions
Integrate MobClix Ads in Unity 4 - iOS 0 Answers
A node in a childnode? 1 Answer
Android Communication 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                