@@ -127,16 +127,16 @@ private void FixedUpdate()
127
127
if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
128
128
clientsInProximity . Add ( client . Key ) ;
129
129
}
130
- InvokeClientRpc ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
130
+ InvokeClientRpcPerformance ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
131
131
}
132
132
else
133
133
{
134
- InvokeClientRpcOnEveryoneExcept ( ApplyAnimMsg , OwnerClientId , stream ) ;
134
+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimMsg , OwnerClientId , stream ) ;
135
135
}
136
136
}
137
137
else
138
138
{
139
- InvokeServerRpc ( SubmitAnimMsg , stream ) ;
139
+ InvokeServerRpcPerformance ( SubmitAnimMsg , stream ) ;
140
140
}
141
141
}
142
142
}
@@ -199,16 +199,16 @@ private void CheckSendRate()
199
199
if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
200
200
clientsInProximity . Add ( client . Key ) ;
201
201
}
202
- InvokeClientRpc ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
202
+ InvokeClientRpcPerformance ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
203
203
}
204
204
else
205
205
{
206
- InvokeClientRpcOnEveryoneExcept ( ApplyAnimParamMsg , OwnerClientId , stream ) ;
206
+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimParamMsg , OwnerClientId , stream ) ;
207
207
}
208
208
}
209
209
else
210
210
{
211
- InvokeServerRpc ( SubmitAnimParamMsg , stream ) ;
211
+ InvokeServerRpcPerformance ( SubmitAnimParamMsg , stream ) ;
212
212
}
213
213
}
214
214
}
@@ -252,11 +252,11 @@ private void SubmitAnimMsg(uint clientId, Stream stream)
252
252
if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
253
253
clientsInProximity . Add ( client . Key ) ;
254
254
}
255
- InvokeClientRpc ( ApplyAnimMsg , clientsInProximity , stream ) ;
255
+ InvokeClientRpcPerformance ( ApplyAnimMsg , clientsInProximity , stream ) ;
256
256
}
257
257
else
258
258
{
259
- InvokeClientRpcOnEveryoneExcept ( ApplyAnimMsg , OwnerClientId , stream ) ;
259
+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimMsg , OwnerClientId , stream ) ;
260
260
}
261
261
}
262
262
@@ -286,11 +286,11 @@ private void SubmitAnimParamMsg(uint clientId, Stream stream)
286
286
if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
287
287
clientsInProximity . Add ( client . Key ) ;
288
288
}
289
- InvokeClientRpc ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
289
+ InvokeClientRpcPerformance ( ApplyAnimParamMsg , clientsInProximity , stream ) ;
290
290
}
291
291
else
292
292
{
293
- InvokeClientRpcOnEveryoneExcept ( ApplyAnimParamMsg , OwnerClientId , stream ) ;
293
+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimParamMsg , OwnerClientId , stream ) ;
294
294
}
295
295
}
296
296
@@ -311,11 +311,11 @@ private void SubmitAnimTriggerMsg(uint clientId, Stream stream)
311
311
if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
312
312
clientsInProximity . Add ( client . Key ) ;
313
313
}
314
- InvokeClientRpc ( ApplyAnimTriggerMsg , clientsInProximity , stream ) ;
314
+ InvokeClientRpcPerformance ( ApplyAnimTriggerMsg , clientsInProximity , stream ) ;
315
315
}
316
316
else
317
317
{
318
- InvokeClientRpcOnEveryoneExcept ( ApplyAnimTriggerMsg , OwnerClientId , stream ) ;
318
+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimTriggerMsg , OwnerClientId , stream ) ;
319
319
}
320
320
}
321
321
@@ -438,16 +438,16 @@ public void SetTrigger(int hash)
438
438
if ( Vector3 . Distance ( transform . position , client . Value . PlayerObject . transform . position ) <= ProximityRange )
439
439
clientsInProximity . Add ( client . Key ) ;
440
440
}
441
- InvokeClientRpc ( ApplyAnimTriggerMsg , clientsInProximity , stream ) ;
441
+ InvokeClientRpcPerformance ( ApplyAnimTriggerMsg , clientsInProximity , stream ) ;
442
442
}
443
443
else
444
444
{
445
- InvokeClientRpcOnEveryoneExcept ( ApplyAnimTriggerMsg , OwnerClientId , stream ) ;
445
+ InvokeClientRpcOnEveryoneExceptPerformance ( ApplyAnimTriggerMsg , OwnerClientId , stream ) ;
446
446
}
447
447
}
448
448
else
449
449
{
450
- InvokeServerRpc ( SubmitAnimTriggerMsg , stream ) ;
450
+ InvokeServerRpcPerformance ( SubmitAnimTriggerMsg , stream ) ;
451
451
}
452
452
}
453
453
}
0 commit comments