public void SetEventPaused(bool _pausedValue)
 {
     if (_pausedValue)
     {
         _thisEvent.setPaused(true);
     }
     else
     {
         _thisEvent.setPaused(false);
     }
 }
コード例 #2
0
 public static void PreviewPause()
 {
     if (previewEventInstance != null)
     {
         bool paused;
         CheckResult(previewEventInstance.getPaused(out paused));
         CheckResult(previewEventInstance.setPaused(!paused));
     }
 }
コード例 #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;
     }
 }
コード例 #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);
        }