From e0ee0862c6e2b76b389cbd969e4a2be245bca012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Cor=C3=A9n?= <2108U9@gmail.com> Date: Fri, 20 Apr 2018 17:00:28 +0200 Subject: [PATCH] Fixed position sync on player object spawn --- MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs b/MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs index 4b76cd6..ca5e2a1 100644 --- a/MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs +++ b/MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs @@ -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(); if (netObject == null) {