public void PlayFxSound(AudioFxTypes fxType) { var sound = audioData.GetFxSound(fxType); fxAudioSource.clip = sound.clip; fxAudioSource.loop = sound.loop; fxAudioSource.volume = sound.volume; fxAudioSource.pitch = sound.pitch; fxAudioSource.Play(); }