mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
docs: NetworkManager callbacks (#2207)
* removing mention of start start happens before server/host/client starts * updating order for stophost
This commit is contained in:
parent
05b4457e61
commit
0d6e867978
@ -13,7 +13,6 @@ A game can be running in one of three modes, host, client, or server-only. The c
|
|||||||
## Host Mode:
|
## Host Mode:
|
||||||
|
|
||||||
When the host is started:
|
When the host is started:
|
||||||
- `Start()` function is called
|
|
||||||
- `OnStartServer`
|
- `OnStartServer`
|
||||||
- `OnStartHost`
|
- `OnStartHost`
|
||||||
- `OnServerConnect`
|
- `OnServerConnect`
|
||||||
@ -35,13 +34,13 @@ When a client disconnects:
|
|||||||
|
|
||||||
When the host is stopped:
|
When the host is stopped:
|
||||||
- `OnStopHost`
|
- `OnStopHost`
|
||||||
- `OnStopServer`
|
- `OnServerDisconnect`
|
||||||
- `OnStopClient`
|
- `OnStopClient`
|
||||||
|
- `OnStopServer`
|
||||||
|
|
||||||
## Client Mode
|
## Client Mode
|
||||||
|
|
||||||
When the client starts:
|
When the client starts:
|
||||||
- `Start()` function is called
|
|
||||||
- `OnStartClient`
|
- `OnStartClient`
|
||||||
- `OnClientConnect`
|
- `OnClientConnect`
|
||||||
- `OnClientChangeScene`
|
- `OnClientChangeScene`
|
||||||
@ -54,7 +53,6 @@ When the client stops:
|
|||||||
## Server Mode
|
## Server Mode
|
||||||
|
|
||||||
When the server starts:
|
When the server starts:
|
||||||
- `Start()` function is called
|
|
||||||
- `OnStartServer`
|
- `OnStartServer`
|
||||||
- `OnServerSceneChanged`
|
- `OnServerSceneChanged`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user