Hi guys, to day i crated 2 scenes, the first is 'First level' where is my robot and his adventure, and the second is 'MainMenu². where you can Start the Game, and Quit the Game. All was okey, i could start and play. But after, i crated an build settings, and after build it, i couldn't die, my restarter script didn't work. I checked everywhere on unity answer same problem, but i didn't find..
So the error message is: Scene 'Assets/First level.unity' (-1) couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.
To add a scene to the build settings use the menu File->Build Settings...
UnityEngine.SceneManagement.SceneManager:LoadScene(String)
UnityStandardAssets._2D.Restarter:OnTriggerEnter2D(Collider2D) (at Assets/Standard Assets/2D/Scripts/Restarter.cs:13)
If you need more infos just ask me, Can you help me please? :(
↧