mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
ClientScene.ApplySpawnPayload: replaced SetLocalObject with EnableIsClient and spawned.Add
This commit is contained in:
parent
206e83ecaf
commit
6a206680d0
@ -51,7 +51,8 @@ internal void AddLocalPlayer(NetworkIdentity localPlayer)
|
||||
m_Connection.SetPlayerController(localPlayer);
|
||||
if (localPlayer != null)
|
||||
{
|
||||
ClientScene.SetLocalObject(localPlayer.netId, localPlayer);
|
||||
localPlayer.EnableIsClient();
|
||||
NetworkIdentity.spawned[localPlayer.netId] = localPlayer;
|
||||
localPlayer.SetConnectionToServer(m_Connection);
|
||||
}
|
||||
// there is no SystemOwnerMessage for local client. add to ClientScene here instead
|
||||
|
Loading…
Reference in New Issue
Block a user