Vector3 notation problem

I’m trying to use the transform.LookAt function.
when I use the script example in the reference, it works perfectly,:


but when I try to write custom values for the vector, it doesn´t work:


error CS0119: Expression denotes a
type', where a variable’, value' or method group’ was expected

Am I writing it wrong? how can I get this working?

In C# you need to add a new keyword before Vector3(…):

transform.LookAt(new Vector3(0,0,0));

That’s one of the reasons I prefer Unityscript! C# complains about everything!