When to use PhotonNetwork.DestroyPlayerObjects ?

Hi, in my game I want to clean up player objects before they're disconnecting

public void Disconnect() { PhotonNetwork.DestroyPlayerObjects(PhotonNetwork.player); PhotonNetwork.Disconnect(); }

this code seems not working. but when I only DestroyPlayerObjects and removing PhotonNetwork.Disconnect line, the clients destroy the objects. So, how to Cleanup (destroy) player Objects when they're about to Disconnect from my game ?
Sign In or Register to comment.