I have 2 scene in my game
*Tutorial Scene
*Actual Game
I want that when I play my game for the first time tutorial scene should start first and then actual game scene and when second time I start my game I want actual game scene to start first. How can I do that
@Bunny83 (sorry for ping it’s my time asking a question here).
Hello @FatalityGames2 you can use PlayerPrefs to store data on the player’s pc so with this code you should load tutorial once in lifetime:
if (PlayerPrefs.HasKey("HasDoneTutorial"))
{
SceneManager.LoadScene("Game");
}
else
{
SceneManager.LoadScene("Tutorial");
}
//When the player finish the tutorial you must run:
PlayerPrefs.SetString("HasDoneTuorial", "yes");