private void checkBrake() { if (pid_runner.isRunning) { return; } StartCoroutine(pid_runner.run()); }
private void checkWheel() { if (Mathf.Abs(getCurrentSlip()) < 0.05f) { reset(); return; } if (pid_runner.isRunning) { return; } StartCoroutine(pid_runner.run()); }
private void checkWheel() { if (Mathf.Abs(carControl.getSpeedFactor()) < 0.05f) { reset(); return; } if (pid_runner.isRunning) { return; } StartCoroutine(pid_runner.run()); }