- Home /
Question by
AutoSky · Nov 15, 2016 at 08:46 AM ·
scene-loadingload scenegame object
Wierd problem when reloading scene, public gameobject does not get assigned...
I have "master game controller" where i assign the player as a public gameobject and everything workes fine, but when the player dies and presses the "play again" button (runs : SceneManager.LoadScene(0, LoadSceneMode.Single); ).
The pubic gameobject does not gets set and leaves empty and that creates all kinds of problems and errors.... what im i missing?
When i start the game normaly
And after i have pressed the play again button
start.png
(11.2 kB)
playagainbtnpress.png
(10.5 kB)
Comment