I'm trying to use dontdestroyonload to keep the same player object from scene to scene, it works just fine but when I reload a scene it completely breaks everything. I get error messages saying "The referenced script on this Behaviour (Game Object 'Player') is missing!" but also for every other object in the scene that has a script. My scripts in the animator don't seem to work anymore too. I'm new to game development so I hope I'm missing something obvious.
↧