Example #1
0
    public void PlayBossMusic()
    {
        if (m_musicAudioSource.isPlaying)
        {
            return;
        }

        m_musicAudioSource.clip   = m_bossFight;
        m_musicAudioSource.volume = m_masterVolume * m_musicVolume;
        m_musicAudioSource.Play();
        StartCoroutine(m_musicManager.BossFightStartedCountdown());
    }