- Home /
Question by
Goldiedog123 · Aug 07, 2017 at 01:37 AM ·
c#gameobjectmultiplayerdontdestroyonload
Destroying DontDestroyOnLoad
Hello Unity community ;) lovely as always,
Okay so here is the question: I'm developing a multiplayer game and all is swell, so far... But the problem is the "LobbyManager" is dont DestroyOnLoad and that's okay because it needs to be! But... after the match when all players are dead it goes back to the main menu and I need the "LobbyManager" do be removed... or it causes errors etc.
Any ideas?
Thanks in advance!
Comment
Answer by game4444 · Aug 08, 2017 at 09:22 AM
Give any tag to LobbyManager GameObject and get Object into the script by search by tag and delete it urself. When all players dead. Hope it works.