- Home /
 
 
               Question by 
               Zaracki · Sep 02, 2013 at 08:55 PM · 
                error-messageno error  
              
 
              C# Error in my 2D racing game
Hello, I have a problem with my script and I cannot find a solution. If someone could take time to find the Error that would be great. 
 
                 
                bc43859a936f168a499a5fad29c8adea.png 
                (72.5 kB) 
               
 
              
               Comment
              
 
               
              Answer by ArkaneX · Sep 02, 2013 at 09:04 PM
Actually there are two errors:
Mathf.Abs accepts parameter of type int or float, and not Vector3 (which is returned from InverseTransformDirection)
InverseTransformDirection accepts a parameter of type Vector3 or three parameters of type float, while you're passing a single float
Your answer
 
             Follow this Question
Related Questions
Monodevelop Error- Unity 4.3 0 Answers
How can i reset unity to default? 0 Answers
BCE0023 Error 1 Answer
Error building Player because scripts had compiler errors 0 Answers
Copying file failed (Unable to build) 4 Answers