示例#1
0
	public void StopSfxLoop(SfxLoop _sfx)
	{
		m_FadingOut [(int)_sfx] = true;
		++m_FadingSfxs;
	}
示例#2
0
	public void PlaySfxLoop(SfxLoop _sfx)
	{
		if(!m_SfxSourcesLoop[(int)_sfx].isPlaying) m_SfxSourcesLoop[(int)_sfx].Play();
		m_SfxSourcesLoop [(int)_sfx].loop = true;
		m_SfxSourcesLoop [(int)_sfx].volume = m_MaxVolume;
		m_FadingOut [(int)_sfx] = false;
		if(m_FadingSfxs>0) --m_FadingSfxs;
	}