how make game manager with diffrent scene level?
help me please.. i want to make a game with multi level scene (the scene diffrent each other). in every scene increase quantity and diffrent size object..and the score display is(" level1...level2"). how can i make game manager this game?
soory my english is not good..
Answer by usalalas · Jan 08, 2016 at 05:52 PM
There are several steps. First create all your scenes, then add them to the build settings. After that you just need to load the scene you want using SceneManager.LoadLevel (Scene Index). About displaying score I need to know what you want.
Answer by ClearRoseOfWar · Jan 08, 2016 at 06:28 PM
to get your scene name, simply:
string tempper = System.IO.Path.GetFileName(EditorApplication.currentScene); // get the name of the scene without the path
tempper = tempper.Substring(0, tempper.Length - 6);//truncate the .unity extension
print (tempper);//print name of scene and be happy :)
Hope this helps.
Your answer
Follow this Question
Related Questions
Reload Current Scene with Scene-manager 3 Answers
save variable from previous scene 2 Answers
Loading Next Scene 2 Answers
Can you make a 3d game have "2d lighting"? 0 Answers
how can i save highest played level?,how can i save number of highest played level? 0 Answers