- Home /
Question by
ChrisButler · Nov 22, 2012 at 12:46 AM ·
objectreferencenull
Passing information error
I have an array (board) with values on one script. I've finally managed to get it talking to the other script, yet now I'm getting an error
NullReferenceException: Object reference not set to an instance of an object Token.Update () (at Assets/Scripts/Token.cs:20)
in Token (I really wish I could rename that) I have this
void Update () { boardValue=spot.Locator(x,y); if (boardValue==1) { transform.localRotation = new Quaternion(0,180,0,0); } else { transform.localRotation = new Quaternion(0,0,0,0); } }
It seems to be passing information but I'm not positive what that message means enough that I could correct the issue. Any ideas?
Comment