Added a Loading Scene (Screen) to my project.
Using Engine: End game (RestartGame) to take player back to Scene 0 (Title Screen) when they select "Quit" option from Pause Menu.
Screen goes black and I get the following error:
NullReferenceException: Object reference not set to an instance of an object.
Error traces back to Line: 105 in SceneChanger.cs:
KickStarter.player.transform.position += new Vector3 (0f, -10000f, 0f);
When I uncheck the Loading Scene option I don't get this error and everything plays fine.
MK
Comments