It says it all in the error message.
public GameObject shipObject;
void Start () {
shipObject = GameObject.Find ("Default");
}
The problem there is, code outside of functions is executed before any unity objects are created, a call there would be meaningless.
↧