private void OnDestroy()
 {
     if (SoundPoolFilter.instance == this)
     {
         this.awake = false;
         SoundPoolFilter.instance = null;
         SoundPool.enabled        = false;
         if (this.quitting)
         {
             SoundPool.Drain();
         }
     }
 }
 private void Awake()
 {
     if (!SoundPoolFilter.instance || !(SoundPoolFilter.instance != this))
     {
         SoundPoolFilter.instance = this;
         this.awake        = true;
         SoundPool.enabled = base.enabled;
     }
     else
     {
         Debug.LogError("ONLY HAVE ONE PLEASE", this);
     }
 }
 private void OnDestroy()
 {
     if (SoundPoolFilter.instance == this)
     {
         this.awake = false;
         SoundPoolFilter.instance = null;
         SoundPool.enabled = false;
         if (this.quitting)
         {
             SoundPool.Drain();
         }
     }
 }
 private void Awake()
 {
     if ((instance != null) && (instance != this))
     {
         Debug.LogError("ONLY HAVE ONE PLEASE", this);
     }
     else
     {
         instance          = this;
         this.awake        = true;
         SoundPool.enabled = base.enabled;
     }
 }
 private void Awake()
 {
     if (!SoundPoolFilter.instance || !(SoundPoolFilter.instance != this))
     {
         SoundPoolFilter.instance = this;
         this.awake = true;
         SoundPool.enabled = base.enabled;
     }
     else
     {
         Debug.LogError("ONLY HAVE ONE PLEASE", this);
     }
 }