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
|
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;
|
||||||
|
|
@ -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;
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user