@@ -106,13 +106,13 @@ internal static void HandleConnectionApproved(uint clientId, byte[] incommingDat
106106
107107 if ( isPlayerObject )
108108 {
109- GameObject go = SpawnManager . SpawnPlayerObject ( ownerId , networkId , new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) ) ;
109+ GameObject go = SpawnManager . SpawnPlayerObject ( ownerId , networkId , new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) , reader ) ;
110110 go . GetComponent < NetworkedObject > ( ) . SetLocalVisibility ( visible ) ;
111111 }
112112 else
113113 {
114114 GameObject go = SpawnManager . SpawnPrefabIndexClient ( prefabId , networkId , ownerId ,
115- new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) ) ;
115+ new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) , reader ) ;
116116
117117 go . GetComponent < NetworkedObject > ( ) . SetLocalVisibility ( visible ) ;
118118 go . GetComponent < NetworkedObject > ( ) . sceneObject = sceneObject ;
@@ -155,13 +155,13 @@ internal static void HandleAddObject(uint clientId, byte[] incommingData, int ch
155155 if ( isPlayerObject )
156156 {
157157 netManager . connectedClients . Add ( ownerId , new NetworkedClient ( ) { ClientId = ownerId } ) ;
158- GameObject go = SpawnManager . SpawnPlayerObject ( ownerId , networkId , new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) ) ;
158+ GameObject go = SpawnManager . SpawnPlayerObject ( ownerId , networkId , new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) , reader ) ;
159159 go . GetComponent < NetworkedObject > ( ) . SetLocalVisibility ( visible ) ;
160160 }
161161 else
162162 {
163163 GameObject go = SpawnManager . SpawnPrefabIndexClient ( prefabId , networkId , ownerId ,
164- new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) ) ;
164+ new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) , reader ) ;
165165
166166 go . GetComponent < NetworkedObject > ( ) . SetLocalVisibility ( visible ) ;
167167 go . GetComponent < NetworkedObject > ( ) . sceneObject = sceneObject ;
@@ -364,14 +364,14 @@ internal static void HandleAddObjects(uint clientId, byte[] incommingData, int c
364364 if ( isPlayerObject )
365365 {
366366 netManager . connectedClients . Add ( ownerId , new NetworkedClient ( ) { ClientId = ownerId } ) ;
367- GameObject go = SpawnManager . SpawnPlayerObject ( ownerId , networkId , new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) ) ;
367+ GameObject go = SpawnManager . SpawnPlayerObject ( ownerId , networkId , new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) , reader ) ;
368368
369369 go . GetComponent < NetworkedObject > ( ) . SetLocalVisibility ( visible ) ;
370370 }
371371 else
372372 {
373373 GameObject go = SpawnManager . SpawnPrefabIndexClient ( prefabId , networkId , ownerId ,
374- new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) ) ;
374+ new Vector3 ( xPos , yPos , zPos ) , Quaternion . Euler ( xRot , yRot , zRot ) , reader ) ;
375375
376376 go . GetComponent < NetworkedObject > ( ) . SetLocalVisibility ( visible ) ;
377377 go . GetComponent < NetworkedObject > ( ) . sceneObject = sceneObject ;
0 commit comments