public static void Precache(SoundCue cue) { if (cue != null) { cue.Precache(); } }
public static void PrecacheSounds(this GameObject go) { var sounds = go.GetComponentsInAllChildren <SoundEntity>(); for (int i = 0; i < sounds.Length; ++i) { SoundCue.Precache(sounds[i].soundCue); } }
public void ClientPrecache() { SoundUtils.PrecacheWithSounds(fxPrefab); SoundCue.Precache(soundCue); }