Has anyone done something similar to the Dual Joysticks example in C#?

Hey guys,

So, I’ve got a game going in C# that I’m trying to convert to work with Android. I want to setup something similar to the Dual Joysticks prefab in the mobile Standard Assets, but it refuses to communicate with my player controller script. I’m assuming this is because the prefab script is in JS.

Has anyone written something similar in C#, or found a way to make RightJoystick/LeftJoystick work in conjunction with a C# script?

Hi jbarket,

I have a converted version of the joystick somewhere but you can always use the java converter.

http://m2h.nl/files/js_to_c.php

I gave that a go, but it was a bit of a mess. I ended up finding someone who had converted the Penelope tutorial and that code is here: Google Code Archive - Long-term storage for Google Code Project Hosting.

I had to tweak the pixel insets and such a good bit, but in the end, it worked!

Found this in the wiki:
http://wiki.unity3d.com/index.php?title=Joystick