@@ -127,16 +127,16 @@ private void FixedUpdate()
127127 if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
128128 clientsInProximity . Add ( client . Key ) ;
129129 }
130- InvokeClientRpc ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
130+ InvokeClientRpcPerformance ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
131131 }
132132 else
133133 {
134- InvokeClientRpcOnEveryoneExcept ( ApplyAnimMsg , OwnerClientId , stream ) ;
134+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimMsg , OwnerClientId , stream ) ;
135135 }
136136 }
137137 else
138138 {
139- InvokeServerRpc ( SubmitAnimMsg , stream ) ;
139+ InvokeServerRpcPerformance ( SubmitAnimMsg , stream ) ;
140140 }
141141 }
142142 }
@@ -199,16 +199,16 @@ private void CheckSendRate()
199199 if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
200200 clientsInProximity . Add ( client . Key ) ;
201201 }
202- InvokeClientRpc ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
202+ InvokeClientRpcPerformance ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
203203 }
204204 else
205205 {
206- InvokeClientRpcOnEveryoneExcept ( ApplyAnimParamMsg , OwnerClientId , stream ) ;
206+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimParamMsg , OwnerClientId , stream ) ;
207207 }
208208 }
209209 else
210210 {
211- InvokeServerRpc ( SubmitAnimParamMsg , stream ) ;
211+ InvokeServerRpcPerformance ( SubmitAnimParamMsg , stream ) ;
212212 }
213213 }
214214 }
@@ -252,11 +252,11 @@ private void SubmitAnimMsg(uint clientId, Stream stream)
252252 if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
253253 clientsInProximity . Add ( client . Key ) ;
254254 }
255- InvokeClientRpc ( ApplyAnimMsg , clientsInProximity , stream ) ;
255+ InvokeClientRpcPerformance ( ApplyAnimMsg , clientsInProximity , stream ) ;
256256 }
257257 else
258258 {
259- InvokeClientRpcOnEveryoneExcept ( ApplyAnimMsg , OwnerClientId , stream ) ;
259+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimMsg , OwnerClientId , stream ) ;
260260 }
261261 }
262262
@@ -286,11 +286,11 @@ private void SubmitAnimParamMsg(uint clientId, Stream stream)
286286 if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
287287 clientsInProximity . Add ( client . Key ) ;
288288 }
289- InvokeClientRpc ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
289+ InvokeClientRpcPerformance ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
290290 }
291291 else
292292 {
293- InvokeClientRpcOnEveryoneExcept ( ApplyAnimParamMsg , OwnerClientId , stream ) ;
293+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimParamMsg , OwnerClientId , stream ) ;
294294 }
295295 }
296296
@@ -311,11 +311,11 @@ private void SubmitAnimTriggerMsg(uint clientId, Stream stream)
311311 if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
312312 clientsInProximity . Add ( client . Key ) ;
313313 }
314- InvokeClientRpc ( ApplyAnimTriggerMsg , clientsInProximity , stream ) ;
314+ InvokeClientRpcPerformance ( ApplyAnimTriggerMsg , clientsInProximity , stream ) ;
315315 }
316316 else
317317 {
318- InvokeClientRpcOnEveryoneExcept ( ApplyAnimTriggerMsg , OwnerClientId , stream ) ;
318+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimTriggerMsg , OwnerClientId , stream ) ;
319319 }
320320 }
321321
@@ -438,16 +438,16 @@ public void SetTrigger(int hash)
438438 if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
439439 clientsInProximity . Add ( client . Key ) ;
440440 }
441- InvokeClientRpc ( ApplyAnimTriggerMsg , clientsInProximity , stream ) ;
441+ InvokeClientRpcPerformance ( ApplyAnimTriggerMsg , clientsInProximity , stream ) ;
442442 }
443443 else
444444 {
445- InvokeClientRpcOnEveryoneExcept ( ApplyAnimTriggerMsg , OwnerClientId , stream ) ;
445+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimTriggerMsg , OwnerClientId , stream ) ;
446446 }
447447 }
448448 else
449449 {
450- InvokeServerRpc ( SubmitAnimTriggerMsg , stream ) ;
450+ InvokeServerRpcPerformance ( SubmitAnimTriggerMsg , stream ) ;
451451 }
452452 }
453453 }
0 commit comments