메소드 | 설명 | |
---|---|---|
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 ( |
||
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 |
public OnClientReady ( bool readyState ) : void | ||
readyState | bool | Whether the player is ready or not. |
리턴 | void |
public OnDeserialize ( NetworkReader reader, bool initialState ) : void | ||
reader | NetworkReader | |
initialState | bool | |
리턴 | void |
public OnSerialize ( |
||
writer | ||
initialState | bool | |
리턴 | bool |