Hi,
So i’ve hit this wall where im seeking to do the right thing when it comes to death and replay.
My game starts with a title screen where i can hit play to begin the game, once it starts its starts with how i placed everything in Unity for the game to start out with. Not really saving any “start” positions or anything for all my moving objects nor character.
But once my character dies, it shows game over and now i have the option to replay or goto the main menu and thats all good, but if i either hit replay or goto main menu and hit play all the moved objects and my character is still dead and the scene isn’t running as i made it stop once he died.
Now i see 2 things i can do, but im unsure if any of those are the right way of doing things, since its all in the same scene i could use the scene manager to load the scene and start over, force the play method to strat the game when hitting replay, but to me that seems not to be the true purpose for the scene manager. Then the second thing i can think of which seems more right to me, is to go back to where it started, the starting positions of the objects from the Unity Editor. Wouldn’t it be better to actual initiate those positions with a script, so i can run that every time i want to reset the game and start over ?
I might have missed a few more options, but what’s the right way going around an issue like this. I only run one scene with the main menu having its own camera as it uses other parts of the game for background.