I have two problems with a system I've made, using the DontDestroyOnLoad:
1st. I wanted to make a respawn function by loading the level you currently are on but that makes the object that have the DDOL function stack up and make each other obsolete. Is there a way so they don't stack up, like destroying the newly created one or something?
2nd. How can I assign an object from the Don't Destroy On Load folder, from the previous scene to a component variable( object) to the next one(Sorry for the bad explanation, you can see what I mean in the picture). ![alt text][1]
[1]: /storage/temp/79777-capture.png
↧