PhotonNetwork.CurrentRoom.PlayerCount always remain same
Options
Hi, may be this is a silly question but I didn't find any proper solution. I am confused to leave a player from a running game after getting his life less then 0;
I am checking his life locally & Calling below function to leave a player
PhotonNetwork.DestroyPlayerObjects(PhotonNetwork.LocalPlayer);
// Because I have created this player by GameManager script, using PhotonNetwork.Instantiate("PForPlayer", position, rotation, 0);
My Problem is that
PhotonNetwork.CurrentRoom.PlayerCount give me always same value even destroying player from network.
Please Help me to understand how should a player leave the game & observe others player activity.
Sorry for my bad English.
I am checking his life locally & Calling below function to leave a player
PhotonNetwork.DestroyPlayerObjects(PhotonNetwork.LocalPlayer);
// Because I have created this player by GameManager script, using PhotonNetwork.Instantiate("PForPlayer", position, rotation, 0);
My Problem is that
PhotonNetwork.CurrentRoom.PlayerCount give me always same value even destroying player from network.
Please Help me to understand how should a player leave the game & observe others player activity.
Sorry for my bad English.
0