I'm really not sure why I'm getting this error, it's a very short script and I can't find a single thing wrong with it. I get a new instance of this error every single frame. The code works fine though, which is even more baffling.
asked Nov 05 '10 at 08:57 PM
try this and look at what the console prints out
The point its to check if the objects you're using http://exist.in this part the 2 objects would be: 1. the "GetComponent()" If this was missing then you might have forgotten to attach this script to the SAME GameObject. if you're calling it from another game object you should use this: GameObject.Find( "name of the gameObject" ).GetComponent();
answered Nov 06 '10 at 04:23 PM
Do you have a GameObject in the scene named "Ship"?
That could be it.
answered Nov 05 '10 at 10:36 PM