/// <inheritdoc/> public void UnicastInitialMessages(IPEndPoint endPoint) { for (var i = 0; i < instantiatedObjects.Count; i++) { var instantiatedObject = instantiatedObjects[i]; if (instantiatedObject.DistributedObject == null) { continue; } var bytesStack = GetInstantiationMessage(instantiatedObject.PrefabId, HierarchyUtility.GetRelativePath( transform, instantiatedObject.DistributedObject.transform), instantiatedObject.DistributedObject.name); UnicastMessage(endPoint, new Message(Key, bytesStack, MessageType.ReliableUnordered)); instantiatedObject.DistributedObject.UnicastInitialMessages(endPoint); } }