void Update() { if (m_rainAudioSource.isPlaying && !m_rainManager.IsRaining()) { m_rainAudioSource.Stop(); } else if (!m_rainAudioSource.isPlaying && m_rainManager.IsRaining()) { m_rainAudioSource.Play(); } }
void Update() { if (m_rainAudioSource.isPlaying && !m_rainManager.IsRaining()) { m_rainAudioSource.Stop(); } else if (!m_rainAudioSource.isPlaying && m_rainManager.IsRaining()) { m_rainAudioSource.Play(); } }