The scene restarts but the values and all the previous events are exactly the same ( player starting position, enemies number, score, etc) also the lighting gets messed up. Is there a way to restart a scene from scratch or do I have to write my own function that takes care of that?
Hopefully the previous posters comment can help with variables. The lighting is a different issue.I remember experiencing this same issue and it confused me. I think this is the exact post I found back then, too lol
Thank you both for answering. Yes, I did have some static variables in my “Level Manager” object that controls different aspects of the game, re-initializing them in “Start” function helped.
And that link to the lighting problem definitely helped.