When using an Enumerator in Unityscript what is the specific method to pass the name or value of the enumeration to somewhere else in the script?
When using values thus far I’ve been declaring a separate variable as an integer, and that seems to work just fine, but I am a bit more confused on passing the name of one, and I don’t want to have to create a variable for every single instance of an enumerator being taken as its numerical value.
Edit to make more clear:
I want to be able to print both the name, and the numerical value.
I know to show the numerical value in C# you can just precede it with (int), but I’m trying to figure out how to do that in Unityscript, and to get it to print the name of the enumerator itself.
I need to be able to reference both forms of the enumeration. I haven’t worked with enums in this capacity before, so I’m restricted on time and language, otherwise I’d just tinker with it or move to C#.