コード例 #1
0
ファイル: SoundMgr.cs プロジェクト: edroity/DanceKing
 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);
         }
     }
 }