//Internal Clip Player checks to see if it is always preempted is checked; //isLeft Which Controller | clip: The Haptics Clip to Play public void ClipPlayer(bool isLeft, OVRHapticsClip clip) { if (isLeft) { if (AlwaysPreempt) { m_hapticsChannelL.Preempt(clip); } else { m_hapticsChannelL.Queue(clip); } } else { if (AlwaysPreempt) { m_hapticsChannelR.Preempt(clip); } else { m_hapticsChannelR.Queue(clip); } } }
IEnumerator VibrateCoroutine() { while (true) { channel.Queue(clipMedium); yield return(new WaitForEndOfFrame()); } }