mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
fix(NetworkClient): InvokeIdentityCallbacks call OnStartClient first (#3884)
- This is for host client to match logical call order as remote client
This commit is contained in:
parent
c77d8459fb
commit
46010ca49c
@ -1493,12 +1493,12 @@ static void InitializeIdentityFlags(NetworkIdentity identity)
|
||||
// cleaner, and some places need to set flags first.
|
||||
static void InvokeIdentityCallbacks(NetworkIdentity identity)
|
||||
{
|
||||
// invoke OnStartAuthority
|
||||
identity.NotifyAuthority();
|
||||
|
||||
// invoke OnStartClient
|
||||
identity.OnStartClient();
|
||||
|
||||
// invoke OnStartAuthority
|
||||
identity.NotifyAuthority();
|
||||
|
||||
// invoke OnStartLocalPlayer
|
||||
if (identity.isLocalPlayer)
|
||||
identity.OnStartLocalPlayer();
|
||||
|
Loading…
Reference in New Issue
Block a user