public static void PlaySE(SoundPack.SystemSE _systemSE) { if (!Singleton <Resources> .IsInstance()) { return; } Singleton <Resources> .Instance.SoundPack.Play(_systemSE); }
public void Play(SoundPack.SystemSE se) { if (!this.use) { return; } Singleton <Resources> .Instance.SoundPack.Play(se); }
public void Play(SoundPack.SystemSE se) { int key; SoundPack.Data2D data2D; if (!this._systemSETable.TryGetValue(se, out key) || !this._systemSEDataTable.TryGetValue(key, out data2D) || !data2D.IsActive) { return; } this.Play((SoundPack.IData)data2D); }
private static void PlayStudioSound(SoundPack.SystemSE sound) { if (playSEMethodInfo == null) { var studioUtility = typeof(Studio.Studio)?.Assembly?.GetType("Studio.Utility"); if (studioUtility != null) { playSEMethodInfo = AccessTools.Method(studioUtility, "PlaySE"); } } playSEMethodInfo?.Invoke(null, new object[] { sound }); }
private void PlaySE(SoundPack.SystemSE se) { if (!Singleton <Resources> .IsInstance()) { return; } SoundPack soundPack = Singleton <Resources> .Instance.SoundPack; if (Object.op_Equality((Object)soundPack, (Object)null)) { return; } soundPack.Play(se); }
public void PlaySE(SoundPack.SystemSE se) { if (!this.Initialized || !this.IsActiveControl) { return; } SoundPack soundPack = !Singleton <Resources> .IsInstance() ? (SoundPack)null : Singleton <Resources> .Instance.SoundPack; if (Object.op_Equality((Object)soundPack, (Object)null)) { return; } soundPack.Play(se); }
private void PlaySystemSE(SoundPack.SystemSE se) { (!Singleton <Manager.Resources> .IsInstance() ? (SoundPack)null : Singleton <Manager.Resources> .Instance.SoundPack)?.Play(se); }
public void PlaySE(SoundPack.SystemSE se) { this.playSE.Play(se); }
private void PlaySE(SoundPack.SystemSE se = SoundPack.SystemSE.OK_S) { Singleton <Resources> .Instance.SoundPack.Play(se); }