As you can see, I have two variables, actionOrient and joyOrient, that are both GameObjects.
Each variable is assigned properly in the Inspector; however, when I play my game I get the following error:
You probably need to assign the actionOrient variable of the ButtonManager script in the inspector. ButtonManager.Update () (at Assets/Scripts/ButtonManager.js:24) I get a similar error for the joyOrient variable if I comment out the actionOrient line. What am I doing wrong here? : http://whitespacecg.com/Images/Cannot_assign_GO.png
Maybe the variables were something else, like Transform, when you assigned them? And then you changed them to GameObject later without reassigning the variables.
answered Aug 28, 2011 at 05:22 PM
Turns out I had a duplicate copy of the script on the Main Camera. Deleted it and all is well again.
answered Sep 24, 2011 at 04:27 PM