private void FixedUpdate() { if (controlRateHz <= 0) { if (OnSendOsc != null) { OnSendOsc.Invoke(); } } }
private IEnumerator ControlRateUpdate() { Debug.Log("Starting Control Rate Update"); while (true) { if (OnSendOsc != null) { OnSendOsc.Invoke(); } yield return(new WaitForSecondsRealtime(1.0f / controlRateHz)); } }