internal void AddLocalPlayer(PlayerController localPlayer)
{
if (LogFilter.logDev)
{
Debug.Log(string.Concat(new object[] { "Local client AddLocalPlayer ", localPlayer.gameObject.name, " conn=", base.m_Connection.connectionId }));
}
base.m_Connection.isReady = true;
base.m_Connection.SetPlayerController(localPlayer);
NetworkIdentity unetView = localPlayer.unetView;
if (unetView != null)
{
ClientScene.SetLocalObject(unetView.netId, localPlayer.gameObject);
unetView.SetConnectionToServer(base.m_Connection);
}
ClientScene.InternalAddPlayer(unetView, localPlayer.playerControllerId);
}