private EffectTracker <AudioSource> CreateNewAudioSource(SyncMode syncMode) { List <EffectTracker <AudioSource> > audioSources = GetCorrectList(syncMode); string sync = syncMode == SyncMode.Singleplayer ? "Singleplayer" : "Multiplayer"; GameObject newSource = new GameObject { name = "AudioSource " + sync + " " + audioSources.Count }; newSource.transform.SetParent(transform); AudioSource source = newSource.AddComponent <AudioSource>(); source.playOnAwake = false; EffectTracker <AudioSource> toReturn = new EffectTracker <AudioSource>(audioSources.Count); toReturn.CreateReference(source); audioSources.Add(toReturn); return(toReturn); }