Question by
CatalinDaniel · Nov 30, 2016 at 01:22 PM ·
main menu
If i have a main menu and a first level for game i need a script to pass from main menu to my game ?
How i can realize a tranzition between main menu and the game stage ?
Comment
Answer by Jacky-Marley · Nov 30, 2016 at 02:13 PM
If you have a scene for your MainMenu and a scene for your game, you need to add the scenes to build settings : File -> Build Settings -> Add Open scene (add the two).
after in your code : SceneManager.LoadScene ("OtherSceneName");
that's all
When adding scenes make sure your $$anonymous$$enu scene goes first in the hierarchy.