Fixed position sync on player object spawn

This commit is contained in:
Albin Corén 2018-04-20 17:00:28 +02:00
parent 3abb311f82
commit e0ee0862c6

View File

@ -142,7 +142,7 @@ namespace MLAPI.NetworkingManagerComponents.Core
return null;
}
GameObject go = MonoBehaviour.Instantiate(netManager.NetworkConfig.NetworkedPrefabs[networkedPrefabId].prefab);
GameObject go = MonoBehaviour.Instantiate(netManager.NetworkConfig.NetworkedPrefabs[networkedPrefabId].prefab, position, rotation);
NetworkedObject netObject = go.GetComponent<NetworkedObject>();
if (netObject == null)
{