- Home /
Game mode freezes on Application.LoadLevel
Hi! Can someone help? I have a problem, when I restart my game (Application.LoadLevel("myLevel")) the game mode gets paused. What can produce such an effect? It was not like that from the beginning. Suddenly it started to behave like that. What are the possible reasons?
what about showing us your scripts or at least part of the scripts so we can help you with that? It could be a timescale problem a static boolean problem etc...
also try checking for null reference and if the scene "mylevel" is added to your build settings.
Well, I work with Arduino bord and it is implemented with Uniduino Asset from the Asset Store. I created one script that is responsible for everything in my game except Arduino serial communication. The Arduino uses a few scripts that establish connection. Apparently my load level functionality depends from reset functionality for the board. I assume that if the board cannot close connection before and starts to open a new session (after loadLevel), it gives me an error, however there is one error "Access denied", it appears after the scene is reloaded, then the game mode sets on pause. I will attach the scripts: 1) quizzz.cs - script where all the interactive / game part is. 2) configuration.cs - here I declaire my sensor pins. 3) Arduino.cs, Arduino.Firmata.cs - these are the scripts from the Uniduino package and they do the connection. And the error points me to the line 179 in Arduino.Firmata.cs. And the there is just an empty object with the Arduino.cs attached. $$anonymous$$y script is attached to the $$anonymous$$ain Camera object.
Thank you!
Your answer
Follow this Question
Related Questions
My GUITexture Script doesn't re-activate when reloading a level. 3 Answers
Can't go back to the game scene from main menu for the second time 2 Answers
Pause menu... Isn't pausing everything... 1 Answer
How to save players position then load a level (pause menu) 2 Answers
pause the audiolistener of the main camera doesn't stop it from generating sound 0 Answers