NTRCustomSendInterval override OnTeleport

This commit is contained in:
MrGadget1024 2023-02-24 22:51:42 -05:00
parent 92310b4c9e
commit 9b9fe83dc5

View File

@ -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