Hi all,
Here i have two scenes , Scene-0(menu) and Scene-1(game scene).
When am in game scene and press back button in mobile i have to go in Scene-0(menu),
and again when i press back button the game should be Quit.
Please give me some code lines to go with this.I know this is very small Question.
You should not check your current scene to decide what new scene to load, just write a script that you point to from the button click event to load a scene by id or name.