fix: Respect Player Prefab Position & Rotation (#825)

Respect Player Prefab Position & Rotation
This commit is contained in:
MrGadget 2019-04-18 08:13:38 -04:00 committed by Paul Pacheco
parent e8d9d852e3
commit 8ebda0fa21

View File

@ -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);
}