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
{
// [RequireComponent(typeof(Rigidbody))] <- OnValidate ensures this is on .target
[AddComponentMenu("Network/Network Rigidbody (Fast Mode)")]
public class NetworkRigidbodyFastMode : NetworkTransformFastMode
[AddComponentMenu("Network/Network Rigidbody (Fast Paced)")]
public class NetworkRigidbodyFastPaced : NetworkTransformFastPaced
{
bool clientAuthority => syncDirection == SyncDirection.ClientToServer;

View File

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

View File

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