public void SetEventPaused(bool _pausedValue)
 {
     if (_pausedValue)
     {
         _thisEvent.setPaused(true);
     }
     else
     {
         _thisEvent.setPaused(false);
     }
 }
Exemplo n.º 2
0
 public static void PreviewPause()
 {
     if (previewEventInstance != null)
     {
         bool paused;
         CheckResult(previewEventInstance.getPaused(out paused));
         CheckResult(previewEventInstance.setPaused(!paused));
     }
 }
Exemplo n.º 3
0
 public static void PreviewPause()
 {
     if (previewEventInstance != null)
     {
         bool paused;
         CheckResult(previewEventInstance.getPaused(out paused));
         CheckResult(previewEventInstance.setPaused(!paused));
         previewState = paused ? PreviewState.Playing : PreviewState.Paused;
     }
 }
Exemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="eventInstance"></param>
        /// <returns></returns>
        public static FMOD.Studio.EventInstance RegisterAsGameplayLooping(this FMOD.Studio.EventInstance eventInstance)
        {
            _loopingInstances.Add(eventInstance);
            if (GameplayStatics.state == GameplayState.GamePaused)
            {
                eventInstance.setPaused(true);
            }

            return(eventInstance);
        }