mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Code cleanup
This commit is contained in:
parent
522655d1ad
commit
eef97e9a52
@ -278,9 +278,7 @@ public override void OnServerAddPlayer(NetworkConnection conn)
|
||||
|
||||
GameObject newRoomGameObject = OnRoomServerCreateRoomPlayer(conn);
|
||||
if (newRoomGameObject == null)
|
||||
newRoomGameObject = (GameObject)Instantiate(roomPlayerPrefab.gameObject, Vector3.zero, Quaternion.identity);
|
||||
|
||||
NetworkRoomPlayer newRoomPlayer = newRoomGameObject.GetComponent<NetworkRoomPlayer>();
|
||||
newRoomGameObject = Instantiate(roomPlayerPrefab.gameObject, Vector3.zero, Quaternion.identity);
|
||||
|
||||
NetworkServer.AddPlayerForConnection(conn, newRoomGameObject);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user