UnityEngine.Networking.NetworkLobbyPlayer.OnClientExitLobby C# (CSharp) Method

OnClientExitLobby() public method

This is a hook that is invoked on all player objects when exiting the lobby.

public OnClientExitLobby ( ) : void
return void
        public virtual void OnClientExitLobby()
        {
        }

Usage Example

コード例 #1
0
 private void CallOnClientExitLobby()
 {
     this.OnLobbyClientExit();
     for (int i = 0; i < this.lobbySlots.Length; i++)
     {
         NetworkLobbyPlayer networkLobbyPlayer = this.lobbySlots[i];
         if (!(networkLobbyPlayer == null))
         {
             networkLobbyPlayer.OnClientExitLobby();
         }
     }
 }