we are making an app-game in Unity, with a demonstration scene that runs the first time you open the app. I would like to know how to go directly to the game main scene the second time you run the app and therefore avoid the demo scene.
Thanks
we are making an app-game in Unity, with a demonstration scene that runs the first time you open the app. I would like to know how to go directly to the game main scene the second time you run the app and therefore avoid the demo scene.
Thanks
You can use PlayerPref to remember that the user has already visited. Something like this in the Awake() of the demo scene:
private void Awake(){
if(PlayerPref.hasKey("returningUser")){
SceneManager.LoadScene("MainScene");
return;
}
PlayerPref.setInt("returningUser", 1);
PlayerPref.Save();
}