Thanks in advance
asked Jun 03 '11 at 05:30 PM
You most likely aren't going to get people here who are going to spend their time converting your script.
Become a better Unity developer and learn to code in both languages. Trust me, down the line you'll need to be able to do both if you want to become successful with Unity.
Take a look at this thread for a good read on the syntax differences.
answered Jun 03 '11 at 06:21 PM
First, the code you posted is full of errors if it is C#.
But besides for that there isn't really anything that should cause problems in translating that aren't obvious changes. Identify variables and declare them in js syntax.
The only thing to remember is that casting in js can only be done with
And see this answer for a more in-depth explanation.
Thanks Meltdown en peter!
While you'r answering my question, i've tried to convert only the changes i need to c#.
answered Jun 04 '11 at 06:47 AM