internal void SetLocalObject(NetworkInstanceId netId, GameObject obj, bool isClient, bool isServer)
{
if (LogFilter.logDev)
{
Debug.Log(string.Concat(new object[] { "SetLocalObject ", netId, " ", obj }));
}
if (obj == null)
{
this.m_LocalObjects[netId] = null;
}
else
{
NetworkIdentity component = null;
if (this.m_LocalObjects.ContainsKey(netId))
{
component = this.m_LocalObjects[netId];
}
if (component == null)
{
component = obj.GetComponent<NetworkIdentity>();
this.m_LocalObjects[netId] = component;
}
component.UpdateClientServer(isClient, isServer);
}
}