mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkTransformFastMode renamed to FastPaced, same for NetworkRigidbody
This commit is contained in:
parent
703ef4a9b2
commit
7fabcaac4e
@ -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;
|
||||
|
@ -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;
|
@ -101,7 +101,7 @@ void OnTriggerEnter(Collider other)
|
||||
{
|
||||
rigidBody.position = startPosition;
|
||||
rigidBody.Sleep(); // reset forces
|
||||
GetComponent<NetworkRigidbodyFastMode>().RpcTeleport(startPosition);
|
||||
GetComponent<NetworkRigidbodyFastPaced>().RpcTeleport(startPosition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user