mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: Respect Player Prefab Position & Rotation (#825)
Respect Player Prefab Position & Rotation
This commit is contained in:
parent
e8d9d852e3
commit
8ebda0fa21
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user