Hello everyone...
I have been the whole day trying to do something VERY simple, and I feel really frustrated... As you will realize soon, I'm a super noob on Unity (but I consider myself an experienced programmer... that's why I am so pissed right now!)
I import standard mobile assets, I add Single Joystick prefab to my "character" (cube, for example) and I add a script to control its movement (In C#). Using "Input.GetAxis" works perfectly, but I can't create a "Joystick" class (even though I have the .js file). I found the same Joystick class in .cs format and I could finally create it, but it is really bothering.
And what feels even more disturbing is that I have been using other scripts I created in C# inside my macros using "GameObject.FindGameObjectWithTag" and "GetComponent(typeof())" but nothing worked with the imported scripts inside the standard mobile assets. I also tried to move them all to the same folder and it also didn't work!!
I'm using Unity 4.3... please teach me! :)
↧