- Home /
Question by
MC HALO · Apr 30, 2011 at 06:08 AM ·
javascriptenum
Help with C#(Sharp) to Java Script :) !!!
How can i convert this line of code to java :
public enum RotationAxes { MouseX = 1 }
Comment
Java or JavaScript?
b/c I'm pretty sure Unity doesn't "do" Java
Surely you could've attempted to compile this, and it would say if it wasn't valid Unityscript...
Best Answer
Answer by Mike 3 · Apr 30, 2011 at 06:13 AM
It's valid JS as it is
if it were valid JS, wouldn't the variable typing occur after the name and addition of the var keyword?
public var RotationAxes:enum = {$$anonymous$$ouseX = 1};