Question by
rockdevels · Mar 12, 2021 at 12:43 PM ·
load level
SceneManager.LoadScene(); is not working correctly
I initialize the "Max Sdk" object in the scene. At the first launch, everything works fine.
/
/
- But when I click restart, I have it initialized twice
/
/
if I click restart again, it initializes three times, and so on.it seems that unity does not delete the scene when using LoadScene (), has anyone encountered such a problem?
2021-03-12-15-29-48.png
(134.5 kB)
2021-03-12-15-37-57.png
(90.8 kB)
Comment