/// <summary>Passes a input pack to execution.</summary> /// <param name="_inputs">The new key inputs.</param> /// <param name="_rotation">The new rotation.</param> public void SetInput(InputPack _pack) { inputs = _pack.input; playerCam.rotation = _pack.camRotation; orientation.rotation = _pack.orientation; currentClientTick = _pack.client_tick; }
public InputPack UseInputPack() { if (inputBuffer.Count != 0) { currentInputPack = inputBuffer.Dequeue(); } else { Debug.LogError("INPUTBUFFER DRAINED"); } return(currentInputPack); }
public InputPack(InputPack inputPack) { mfileName = inputPack.FileName; mdetailType = inputPack.DetailType; mfileType = inputPack.FileType; }
/// <summary>Sends player input to the server.</summary> private void SendInputToServer(InputPack _pack) { ClientSend.PlayerMovement(_pack); }