- Home /
A connection has already been set as ready. There can only be one.
Hello, I have a multiplayer game with a host and client. When I start my host for the first time, everything works fine.
However, if I go back to menu and start hosting a new game, anybody that connects gets the following error : "A connection has already been set as ready. There can only be one." and then their game crashes.
What is different between the first and the second connection ? How can I completely reset the NetworkManager between two sessions of the game to avoid these problems ? I use that before starting a new game :
this.networkManager.StopHost (); NetworkServer.Reset(); NetworkManager.Shutdown (); Destroy(this.networkManager.gameObject); this.networkManager = Instantiate (this.NetManagerObject).GetComponent(); this.networkManager.gameObject.name = "NetworkManager"; this.networkManager.offlineScene = "";
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
create android multiplayer game using wifi ? 0 Answers
Animation & sound over network 1 Answer
Using AssignClientAuthority 0 Answers
Syncing terrain over Network 0 Answers