When to use PhotonNetwork.DestroyPlayerObjects ?
Options
Hi, in my game I want to clean up player objects before they're disconnecting
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 ?
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 ?
0