I have been making a game with the photon engine plugin, however, when player A dies, they execute the loadscene(“lobby_scene”); function. But player B is the one being sent back to the lobby, not player A. Any help?
Here’s my code
if(hp <= 0)
{
scenemanager.loadscene(“lobby”);
PhotonNetwork.Destory(gameObject);
}