C# Класс UnityEngine.Networking.NetworkLobbyPlayer

Наследование: NetworkBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
OnDisable ( ) : void
OnEnable ( ) : void
OnGUI ( ) : void
OnSceneLoaded ( Scene scene, LoadSceneMode mode ) : void
Start ( ) : void

Описание методов

OnClientEnterLobby() публичный Метод

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

public OnClientEnterLobby ( ) : void
Результат void

OnClientExitLobby() публичный Метод

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

public OnClientExitLobby ( ) : void
Результат void

OnClientReady() публичный Метод

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.
Результат void

OnDeserialize() публичный Метод

public OnDeserialize ( NetworkReader reader, bool initialState ) : void
reader NetworkReader
initialState bool
Результат void

OnSerialize() публичный Метод

public OnSerialize ( NetworkWriter writer, bool initialState ) : bool
writer NetworkWriter
initialState bool
Результат bool

OnStartClient() публичный Метод

public OnStartClient ( ) : void
Результат void

RemovePlayer() публичный Метод

This removes this player from the lobby.

public RemovePlayer ( ) : void
Результат void

SendNotReadyToBeginMessage() публичный Метод

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

public SendNotReadyToBeginMessage ( ) : void
Результат void

SendReadyToBeginMessage() публичный Метод

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

public SendReadyToBeginMessage ( ) : void
Результат void

SendSceneLoadedMessage() публичный Метод

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
Результат void