/** ClientSimulation.Handler interface */ public PlayerInputs?SampleInputs() { if (localPlayerInput == null) { return(null); } return(localPlayerInput.SampleInputs()); }
public void Update() { playerController.SetPlayerInputs(clientPlayerInput.SampleInputs()); playerController.Simulate(Time.deltaTime); }