Players enter in game, how i can know it?

tomasss
edited June 2014 in DotNet
Hello! Probably this is a stupid question but i don't know the right answer. How can i know if a player is playing in my room? What's the function to know it? (I'm an italian boy, sorry for my english). Thanks

Comments

  • Hi,

    PhotonNetwork.playerList is list of players currently in the room. PhotonNetwork.otherPlayers is same list but without local player.

    Also you can handle OnPhotonPlayerConnected and OnPhotonPlayerDisconnected messages to do something when someone joining or leaving the room.
  • Perferct! It is all what i want! Thank you