Hello Everyone.
I got a small problem when I load to the next scene.
Instead of loading the “game over” scene for all situations, I created two scenes.
1)The Scenes of Win
Load to it once the point reaches 1000 points.
- The Scenes of Gameover
Load to it once the HP of the player goes to 0
However, I keep having this bug occurs.
And it makes my “return main menu” button failed.
My code is almost the same as the RIck.
Except I added a Win Point at Update that can make the system load the win scenes once the scores reach the point I set.
Does anyone know what is the reason for this bug?
And how can I solve this?
Thank you for your help in advance.