Make work with astra
This commit is contained in:
parent
21859bcfb3
commit
c8ee5045e2
1 changed files with 6338 additions and 4613 deletions
|
|
@ -82,6 +82,8 @@ public class CarClient : NetworkBehaviour {
|
|||
[ClientRpc(channel = 0)]
|
||||
public void RpcDecodeBits (ulong newStateBits)
|
||||
{
|
||||
if (stateBuffer == null)
|
||||
stateBuffer = new StateBuffer(delay);
|
||||
CompressedStateFrame compressedStateFrame = new CompressedStateFrame(newStateBits);
|
||||
StateFrame newStateFrame = compressedStateFrame.GetDecodedStateFrame(transform);
|
||||
stateBuffer.AddFrame(ref newStateFrame);
|
||||
|
|
|
|||
Loading…
Reference in a new issue