Search Unity

Var code issue

Discussion in 'Scripting' started by Trexroufish, Aug 30, 2014.

  1. Trexroufish

    Trexroufish

    Joined:
    May 8, 2014
    Posts:
    1
    Hello im a beginner at unity, and I have been working on a new car game. But when I finish my script the code var underlines red and wont let me add to the car! Please help if helps I have put a picture on it. Thank you. unity script problem.PNG
     
  2. bbQsauce

    bbQsauce

    Joined:
    Jun 29, 2014
    Posts:
    53
    could you post the whole script? And read this
     
  3. Themp

    Themp

    Joined:
    Nov 8, 2011
    Posts:
    96
    You probably made a C# script instead of a Javascript script, create a new JS script and try again, it'll work