public void SetEventPaused(bool _pausedValue) { if (_pausedValue) { _thisEvent.setPaused(true); } else { _thisEvent.setPaused(false); } }
public static void PreviewPause() { if (previewEventInstance != null) { bool paused; CheckResult(previewEventInstance.getPaused(out paused)); CheckResult(previewEventInstance.setPaused(!paused)); } }
public static void PreviewPause() { if (previewEventInstance != null) { bool paused; CheckResult(previewEventInstance.getPaused(out paused)); CheckResult(previewEventInstance.setPaused(!paused)); previewState = paused ? PreviewState.Playing : PreviewState.Paused; } }
/// <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); }