Exemplo n.º 1
0
 public static void PlaySE(SoundPack.SystemSE _systemSE)
 {
     if (!Singleton <Resources> .IsInstance())
     {
         return;
     }
     Singleton <Resources> .Instance.SoundPack.Play(_systemSE);
 }
Exemplo n.º 2
0
 public void Play(SoundPack.SystemSE se)
 {
     if (!this.use)
     {
         return;
     }
     Singleton <Resources> .Instance.SoundPack.Play(se);
 }
Exemplo n.º 3
0
        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 });
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
 private void PlaySystemSE(SoundPack.SystemSE se)
 {
     (!Singleton <Manager.Resources> .IsInstance() ? (SoundPack)null : Singleton <Manager.Resources> .Instance.SoundPack)?.Play(se);
 }
Exemplo n.º 8
0
 public void PlaySE(SoundPack.SystemSE se)
 {
     this.playSE.Play(se);
 }
Exemplo n.º 9
0
 private void PlaySE(SoundPack.SystemSE se = SoundPack.SystemSE.OK_S)
 {
     Singleton <Resources> .Instance.SoundPack.Play(se);
 }