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.