예제 #1
0
    void Update()
    {
        //if(Input.GetKeyDown("m"))
        //{
        //    LevelEnd();
        //}
        if (muteMusic == true)
        {
            musicManager.GetComponent <AudioSource>().mute = true;
        }

        if (muteAmb == true)
        {
            ambienceManager.GetComponent <AudioSource>().mute = true;
        }

        if (muteGameSFX == true)
        {
            gameSFX.GetComponent <AudioSource>().mute = true;
        }

        if (mutePlayerSFX == true)
        {
            playerSFX.GetComponent <AudioSource>().mute = true;
        }
    }