C# Class UnityEngine.Networking.NetworkLobbyPlayer

Inheritance: NetworkBehaviour
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
OnClientEnterLobby ( ) : void

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

OnClientExitLobby ( ) : void

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

OnClientReady ( bool readyState ) : void

This is a hook that is invoked on clients when a LobbyPlayer switches between ready or not ready.

OnDeserialize ( NetworkReader reader, bool initialState ) : void
OnSerialize ( NetworkWriter writer, bool initialState ) : bool
OnStartClient ( ) : void
RemovePlayer ( ) : void

This removes this player from the lobby.

SendNotReadyToBeginMessage ( ) : void

This is used on clients to tell the server that this player is not ready for the game to begin.

SendReadyToBeginMessage ( ) : void

This is used on clients to tell the server that this player is ready for the game to begin.

SendSceneLoadedMessage ( ) : void

This is used on clients to tell the server that the client has switched from the lobby to the GameScene and is ready to play.

Private Methods

Method Description
OnDisable ( ) : void
OnEnable ( ) : void
OnGUI ( ) : void
OnSceneLoaded ( Scene scene, LoadSceneMode mode ) : void
Start ( ) : void

Method Details

OnClientEnterLobby() public method

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

public OnClientEnterLobby ( ) : void
return void

OnClientExitLobby() public method

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

public OnClientExitLobby ( ) : void
return void

OnClientReady() public method

This is a hook that is invoked on clients when a LobbyPlayer switches between ready or not ready.

public OnClientReady ( bool readyState ) : void
readyState bool Whether the player is ready or not.
return void

OnDeserialize() public method

public OnDeserialize ( NetworkReader reader, bool initialState ) : void
reader NetworkReader
initialState bool
return void

OnSerialize() public method

public OnSerialize ( NetworkWriter writer, bool initialState ) : bool
writer NetworkWriter
initialState bool
return bool

OnStartClient() public method

public OnStartClient ( ) : void
return void

RemovePlayer() public method

This removes this player from the lobby.

public RemovePlayer ( ) : void
return void

SendNotReadyToBeginMessage() public method

This is used on clients to tell the server that this player is not ready for the game to begin.

public SendNotReadyToBeginMessage ( ) : void
return void

SendReadyToBeginMessage() public method

This is used on clients to tell the server that this player is ready for the game to begin.

public SendReadyToBeginMessage ( ) : void
return void

SendSceneLoadedMessage() public method

This is used on clients to tell the server that the client has switched from the lobby to the GameScene and is ready to play.

public SendSceneLoadedMessage ( ) : void
return void