OnLeftLobby
How do I use On Left Lobby
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
452 | SendMonoMessage(PhotonNetworkingMessage.OnLeftLobby); | 1 |
500 | public virtual void OnLeftLobby() | 2 |
File name: NetworkingPeer.cs
Copy
441 /// Called at disconnect/leavelobby etc. This CAN also be called when we are not in a lobby (e.g. disconnect from room)
444 private void LeftLobbyCleanup()
445 {
446 this.mGameList = new Dictionary
447 this.mGameListCopy = new RoomInfo[0];
448
449 if (insideLobby)
450 {
451 this.insideLobby = false;
452 SendMonoMessage(PhotonNetworkingMessage.OnLeftLobby);
453 }
454 }
File name: PhotonClasses.cs
Copy
497 /// When you leave a lobby, [CreateRoom](@ref PhotonNetwork.CreateRoom) and [JoinRandomRoom](@ref PhotonNetwork.JoinRandomRoom)
500 public virtual void OnLeftLobby()
501 {
502 }
OnLeftLobby 177 lượt xem
Gõ tìm kiếm nhanh...