In the Karting tutorial, it says to delete all calls to “playsound”
What exactly does this mean?
Here is the script containing “playsound”
What do I delete? All of it?
void PlaySound(AudioClip sound)
{
if (!sound)
return;
if (!m_AudioSource)
{
m_AudioSource = gameObject.AddComponent<AudioSource>();
m_AudioSource.outputAudioMixerGroup = AudioUtility.GetAudioGroup(AudioUtility.AudioGroups.HUDObjective);
}
m_AudioSource.PlayOneShot(sound);
}