GameObject ship = GameObject.Find(“Ship”);
Move movescript = ship.GetComponent();
sometimes this is called after Ship is dead, which causes a null reference exception on getComponent. What is the proper way to test this before making the getcomponent call?