From 8ebda0fa21b430ce1394eba8e7eeafa56d9290f3 Mon Sep 17 00:00:00 2001 From: MrGadget Date: Thu, 18 Apr 2019 08:13:38 -0400 Subject: [PATCH] fix: Respect Player Prefab Position & Rotation (#825) Respect Player Prefab Position & Rotation --- Assets/Mirror/Runtime/NetworkManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index b4a478001..77045cbbc 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -681,7 +681,7 @@ public virtual void OnServerAddPlayer(NetworkConnection conn, AddPlayerMessage e Transform startPos = GetStartPosition(); GameObject player = startPos != null ? Instantiate(playerPrefab, startPos.position, startPos.rotation) - : Instantiate(playerPrefab, Vector3.zero, Quaternion.identity); + : Instantiate(playerPrefab); NetworkServer.AddPlayerForConnection(conn, player); }