NetworkTransformFastMode renamed to FastPaced, same for NetworkRigidbody

This commit is contained in:
mischa 2024-07-14 10:53:28 +02:00
parent 703ef4a9b2
commit 7fabcaac4e
5 changed files with 5 additions and 5 deletions

View File

@ -3,8 +3,8 @@
namespace Mirror namespace Mirror
{ {
// [RequireComponent(typeof(Rigidbody))] <- OnValidate ensures this is on .target // [RequireComponent(typeof(Rigidbody))] <- OnValidate ensures this is on .target
[AddComponentMenu("Network/Network Rigidbody (Fast Mode)")] [AddComponentMenu("Network/Network Rigidbody (Fast Paced)")]
public class NetworkRigidbodyFastMode : NetworkTransformFastMode public class NetworkRigidbodyFastPaced : NetworkTransformFastPaced
{ {
bool clientAuthority => syncDirection == SyncDirection.ClientToServer; bool clientAuthority => syncDirection == SyncDirection.ClientToServer;

View File

@ -5,8 +5,8 @@
namespace Mirror namespace Mirror
{ {
[AddComponentMenu("Network/Network Transform (Fast Mode)")] [AddComponentMenu("Network/Network Transform (Fast Paced)")]
public class NetworkTransformFastMode : NetworkTransformBase public class NetworkTransformFastPaced : NetworkTransformBase
{ {
uint sendIntervalCounter = 0; uint sendIntervalCounter = 0;
double lastSendIntervalTime = double.MinValue; double lastSendIntervalTime = double.MinValue;

View File

@ -101,7 +101,7 @@ void OnTriggerEnter(Collider other)
{ {
rigidBody.position = startPosition; rigidBody.position = startPosition;
rigidBody.Sleep(); // reset forces rigidBody.Sleep(); // reset forces
GetComponent<NetworkRigidbodyFastMode>().RpcTeleport(startPosition); GetComponent<NetworkRigidbodyFastPaced>().RpcTeleport(startPosition);
} }
} }
} }