mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Fill Server events
This commit is contained in:
parent
e0902361b7
commit
b618fb017c
@ -3,14 +3,18 @@
|
|||||||
General description of Server Events
|
General description of Server Events
|
||||||
|
|
||||||
- **OnServerConnect**
|
- **OnServerConnect**
|
||||||
Something about this
|
Called on the server when a new client connects.
|
||||||
|
Miror calls this on the Server when a Client connects to the Server. Use an override to tell the NetworkManager what to do when a client connects to the server.
|
||||||
- **OnServerDisconnect**
|
- **OnServerDisconnect**
|
||||||
Something about this
|
Called on the server when a client disconnects.
|
||||||
|
This is called on the Server when a Client disconnects from the Server. Use an override to decide what should happen when a disconnection is detected.
|
||||||
- **OnServerAddPlayer**
|
- **OnServerAddPlayer**
|
||||||
Something about this
|
Called on the server when a client adds a new player with ClientScene.AddPlayer.
|
||||||
|
The default implementation for this function creates a new player object from the playerPrefab.
|
||||||
- **OnServerRemovePlayer**
|
- **OnServerRemovePlayer**
|
||||||
Something about this
|
Called on the server when a client removes a player.
|
||||||
|
The default implementation of this function destroys the corresponding player object.
|
||||||
- **OnServerSceneChanged**
|
- **OnServerSceneChanged**
|
||||||
Something about this
|
Called on the server when a Scene is completed loaded, when the Scene load was initiated by the server with ServerChangeScene().
|
||||||
- **OnServerError**
|
- **OnServerError**
|
||||||
Something about this
|
Called on the server when a network error occurs for a client connection.
|
||||||
|
Loading…
Reference in New Issue
Block a user