Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
    public InputPack UseInputPack()
    {
        if (inputBuffer.Count != 0)
        {
            currentInputPack = inputBuffer.Dequeue();
        }
        else
        {
            Debug.LogError("INPUTBUFFER DRAINED");
        }

        return(currentInputPack);
    }
Esempio n. 3
0
 public InputPack(InputPack inputPack)
 {
     mfileName   = inputPack.FileName;
     mdetailType = inputPack.DetailType;
     mfileType   = inputPack.FileType;
 }
Esempio n. 4
0
 /// <summary>Sends player input to the server.</summary>
 private void SendInputToServer(InputPack _pack)
 {
     ClientSend.PlayerMovement(_pack);
 }