//ButtonManager.js - Get user input from on-screen controls and pass along
var fireButton : GUITexture;
var actionButton : GUITexture;
var joyButton : GUITexture;
var actionOrient : GameObject;
var joyOrient : GameObject;
var actions = new GUITexture[4];
var destinations = new GameObject[4];
var feedback : GUIText;
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:
UnassignedReferenceException: The variable actionOrient of ‘ButtonManager’ has not been assigned.
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?