Any 'easy' way for Photon to automatically cleanup?

Options
waxx
waxx
Hey guys.

I'm sitting here with a pretty much finished game and suddenly whoops I have to implement level restarting after players` death. Now the problem is there are network-aware objects created in the scene and I'm wondering if there's any way to destroy them all at once?

Probably a long shot, but I had to try :P

Comments

  • vadim
    Options
    Hi,
    How do you restart?
    When client leaves the room, all network objects should be automatically destroyed.
  • waxx
    Options
    No, I don't leave the room. I want to keep connection and restart the map. But I found PhotonNetwork.DestroyAll() and I think I'll use it :D
  • vadim
    Options
    Documentation has detailed info on what PhotonNetwork.DestroyAll() does. Read it to make sure that this is what you want.