BeardedManStudios.Network.NetworkingManager.InitializeObject C# (CSharp) Method

InitializeObject() private method

private InitializeObject ( ulong startObjectId, int count ) : void
startObjectId ulong
count int
return void
		private void InitializeObject(ulong startObjectId, int count)
		{
			if (!OwningNetWorker.IsServer)
				return;

			for (int i = 0; i < count; i++)
			{
				if (networkedBehaviors.ContainsKey(startObjectId + (ulong)i))
				{
					if (networkedBehaviors[startObjectId + (ulong)i] is NetworkedMonoBehavior)
						((NetworkedMonoBehavior)networkedBehaviors[startObjectId + (ulong)i]).AutoritativeSerialize();
				}
			}
		}