Fixed position sync on player object spawn
This commit is contained in:
parent
3abb311f82
commit
e0ee0862c6
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user