After the text “You win” I want to return to my main menu. I did it writing SceneManager.LoadScene(); and putting in the parenthesis the scene number of my menu, but i want that the redirect is delayed by a few second after the win text. How can i do this?
but make sure you don’t call it multiple times, if they get even more scores while waiting for it…
like adding bool isLoading = true, or something and checking it before calling again.
Thank you guys. Another little question. If i wanted to open a menu by clicking a button, what i have to do? I looked for solutions , but i only found a way with animation. Is there a simple way?
P.S. and if i want to load the scene with a little effect? Maybe with a fade. Is it possible?