Skip to content

Commit

Permalink
fix: Respect Player Prefab Position & Rotation (#825)
Browse files Browse the repository at this point in the history
Respect Player Prefab Position & Rotation
  • Loading branch information
MrGadget authored and paulpach committed Apr 18, 2019
1 parent e8d9d85 commit 8ebda0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Runtime/NetworkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8ebda0f

Please sign in to comment.