private void LoadData() { if (m_source.clip != null) { Stop(); } m_source.clip = m_data.GetClip(); m_source.volume = m_data.volume; m_source.pitch = m_data.pitch; m_data.audioSource = m_source; }
private void LoadData() { if (m_source.clip != null) { Stop(); } m_source.clip = m_data.GetClip(); m_source.volume = m_data.volume; m_source.pitch = m_data.pitch; m_data.audioSource = m_source; }