Quantcast
Channel: Questions in topic: "dontdestroyonload"
Viewing all articles
Browse latest Browse all 416

Destroying Dontdestroyonload in code

$
0
0
Hello unity community your looking good! Cough Cough enough of that, Sooo here is the question: I'm trying to destroy the dontdestroyonload after the match finishes... in my game but I have no clue how to have it destroyed. Example of my code: IEnumerator Finish() { yield return new WaitForSeconds(3.0f); NetworkManager.singleton.StopClient(); NetworkManager.singleton.StopHost(); // DESTROY DONTDESTROYONLOAD; SceneManager.LoadScene(0); } THANKS IN ADVANCE IF YOU RESPOND. This problem is causing my game a lot of errors etc.

Viewing all articles
Browse latest Browse all 416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>