![]() ![]() More.Ĭalled after the connection to the master is established and authenticated but only when toJoinLobby is false. The parameter provides ErrorCode and message. OnPhotonRandomJoinFailed (object codeAndMsg)Ĭalled when a JoinRandom() call failed. This PhotonPlayer is already removed from the playerlist at this time. OnPhotonPlayerDisconnected ( PhotonPlayer otherPlayer)Ĭalled when a remote player left the room. This PhotonPlayer is already added to the playerlist at this time. OnPhotonPlayerConnected ( PhotonPlayer newPlayer)Ĭalled when a remote player entered the room. Called on all clients (including the Master Client). More.Ĭalled when entering a room (by creating or joining it). #Networkview owner unity updateMore.Ĭalled for any update of the room-listing while in a lobby ( PhotonNetwork.insideLobby) on the Master Server or when a response is received for PhotonNetwork.GetCustomRoomList(). OnPhotonInstantiate ( PhotonMessageInfo info)Ĭalled on all scripts on a GameObject (and children) that have been Instantiated using PhotonNetwork.Instantiate. OnConnectionFail ( DisconnectCause cause)Ĭalled when something causes the connection to fail (after it was established), followed by a call to OnDisconnectedFromPhoton(). More.Ĭalled after disconnecting from the Photon server. ![]() OnFailedToConnectToPhoton ( DisconnectCause cause)Ĭalled if a connect call to the Photon server failed before the connection was established, followed by a call to OnDisconnectedFromPhoton(). The actual room-list updates will call OnReceivedRoomListUpdate(). More.Ĭalled on entering a lobby on the Master Server. More.Ĭalled when this client created a room and entered it. The parameter provides ErrorCode and message (as array). OnPhotonJoinRoomFailed (object codeAndMsg)Ĭalled when a JoinRoom() call failed. OnPhotonCreateRoomFailed (object codeAndMsg)Ĭalled when a CreateRoom() call failed. OnMasterClientSwitched ( PhotonPlayer newMasterClient)Ĭalled after switching to a new MasterClient when the current one leaves. More.Ĭalled when the local user/client left a room. OnJoinedLobby() or OnConnectedToMaster() are called when PUN is ready. Inherits Photon.MonoBehaviour, and IPunCallbacks.Ĭalled when the initial connection got established but before you can use the server. Override the events/methods you want to use. photonView and all callbacks/events that PUN can call. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |