I have my dynamic camera working flawlessly when I play the game. However, if I reload the scene with a script that calls:
Scene scene = SceneManager.GetActiveScene();
SceneManager.LoadScene(scene.name);
then I get the following error for all future calls to the action cam:
“MissingReferenceException: The object of type ‘GameObject’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.”
Any ideas what I might have done wrong? Shooting still works perfectly, so I am baffled