Checking when players loaded on scene
Options
Rim2812
✭
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;
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++; }
0
Comments
-
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,
Jean0