Which method use to check if player is in scene.

Options
I have problem but I dont know how to check if the player is already in scene I use:

void OnPhotonPlayerConnected(PhotonPlayer player)
{

if (PhotonNetwork.otherPlayers.Length >= 1)
{
Debug.Log(player.NickName + "join game, sending Repaint equipment from player ID:" + this.photonView.ownerId);
RePaintEq();
}

}

but is to fast and i got error about PhotonView doesnt exist.
Thanks for help ^^

Comments

  • Piterq70
    Options
    I find (connectionStateDetailed == ClientState.Joined) it will be usefull ? And how to use it ?