Example #1
0
 public void Mute(bool isMute)
 {
     if (isMute)
     {
         m_bgm_source1.volume = 0;
         m_bgm_source2.volume = 0;
         SoundMgr.GetSingle().switch_se(false);
     }
     else
     {
         m_bgm_source1.volume = bg1Val;
         m_bgm_source2.volume = bg2Val;
         if (this.soundOpen)
         {
             SoundMgr.GetSingle().switch_se(true);
         }
     }
 }