- Home /
Question by
HolBol · Sep 08, 2010 at 06:15 PM ·
variablelanguage-comparison
how would i write this in C#?
in JS it would be
var rlight1 : light;
but i'm trying to get this into csharp, and i'm having some difficulty. Help!
Comment
Answer by HeywoodFloyd · Sep 08, 2010 at 06:28 PM
Light rlight1;
C# is case-sensitive. Also, by default, variables are private, so if you want to see it in the inspector or be accessible to other scripts, it would be:
public Light rlight1;