[solved] when use PhotonNetwork.LeaveRoom(), Destroy Other objects..

Options
Hello~
I have trouble in Leaving Room.

when i use PhotonNetwork.LeaveRoom(),

i want to destroy only my Character.

But, it Destroy My Character and all Other user's characters.

Please advise me how to solve this.

Thanks.

------------------------------
//i used it here

void OnPhotonPlayerDisconnected(PhotonPlayer outPlayer)
{
PhotonNetwork.LeaveRoom();
}

Comments

  • I solved this myself.

    I think
    PhotonNetwork.LeaveRoom();
    must not use in 'OnPhotonPlayerDisconnected(PhotonPlayer outPlayer)'

    I made button and use it in button.
    I can solve this.
    thanks!