Checking when players loaded on scene

Options
How i can check when all the players have been loaded to the scene of another scene ( menu ) ?
Try to send RPC but the values do not go correct (if using photonView.isMine the result is also not correct)
float playersConnected;
void Start () {
photonView.RPC ("Connected", PhotonTargets.AllBuffered);
}

[PunRPC]
public void Connected(){
playersConnected++;
}

Comments

  • jeanfabre
    Options
    Hi,

    I would rely on Components on the Players being called OnLevelLoaded() when a level has loaded then you can manage instances and keep track of them.

    But I am not too sure what you are trying to achieve. Can you explain more about what you are after if the above doesn't help?

    Bye,

    Jean