By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Since there is only ever going to be 1 ship in the game, you can make that variable static. This is normally not a good approach but it seems alright in this case.


in Game -

public static SpaceShip ship;