OVRLipSyncContextCanned.cs 422 B

1234567891011121314151617
  1. using System;
  2. using UnityEngine;
  3. [RequireComponent(typeof(AudioSource))]
  4. public class OVRLipSyncContextCanned : OVRLipSyncContextBase
  5. {
  6. private void Update()
  7. {
  8. if (this.audioSource.isPlaying && this.currentSequence != null)
  9. {
  10. OVRLipSync.Frame frameAtTime = this.currentSequence.GetFrameAtTime(this.audioSource.time);
  11. base.Frame.CopyInput(frameAtTime);
  12. }
  13. }
  14. public OVRLipSyncSequence currentSequence;
  15. }