//Changes the scene, disconnects the player and destroys the NetworkManager. you have to destroy the NetworkManager or //else it will asume that you can still connect while your in the wrong scene //The parameter choses what scene to change to public void ChangeAndDC(int scene) { if (lob) { lob.backDelegate(); pausePanel.SetActive(false); } //else //Debug.Log("still doesn't work"); }