C# 클래스 UnityEngine.Networking.NetworkLobbyPlayer

상속: NetworkBehaviour
파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
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