mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NTRCustomSendInterval override OnTeleport
This commit is contained in:
parent
92310b4c9e
commit
9b9fe83dc5
@ -83,6 +83,18 @@ void LateUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnTeleport(Vector3 destination)
|
||||
{
|
||||
if (isOwned && TryGetComponent(out CharacterController cc))
|
||||
{
|
||||
cc.enabled = false;
|
||||
base.OnTeleport(destination);
|
||||
cc.enabled = true;
|
||||
}
|
||||
else
|
||||
base.OnTeleport(destination);
|
||||
}
|
||||
|
||||
protected virtual void UpdateServer()
|
||||
{
|
||||
// apply buffered snapshots IF client authority
|
||||
|
Loading…
Reference in New Issue
Block a user