[SOLVED]new GUIStyle keeps throwing error - ';' expecting...

This is a part of the code:

function OnGUI () {
	var DuzinaSobe=0;
	var SirinaSobe=0;
	GUIStyle Stil = new GUIStyle();
	Stil.color=color.green;

Application throws me an error:
Assets/StartMenu.js(9,17): UCE0001: ‘;’ expected. Insert a semicolon at the end.

I tried to restart unity, to put a space between () and semicolon but nothing helps…

Where is that error? Am I blind, or what?

Thanks…

EDIT: Forgot to tell that error point to the line containing

GUIStyle Stil = new GUIStyle();

Try Color.green (capitalize Color)

green is static and must be referenced by it’s class name.

Nope…Still throws me an error in line containing

GUIStyle Stil = new GUIStyle();

Assets/StartMenu.js(9,17): UCE0001: ';' expected. Insert a semicolon at the end.

For future references when anyone will have stupid problem like mine: Read the manual first!

:sweat_smile: