예제 #1
0
 public static void Precache(SoundCue cue)
 {
     if (cue != null)
     {
         cue.Precache();
     }
 }
예제 #2
0
        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);
		}