示例#1
0
 /// <summary>
 /// Quick set from ID.
 /// </summary>
 public void SetSound(uint soundID, AudioPresets preset = AudioPresets.OnDemand, bool _3D = true)
 {
     if (ReadyCheck())
     {
         int soundIndex = dfUnity.SoundReader.GetSoundIndex(soundID);
         SoundIndex = soundIndex;
         Preset     = preset;
         Apply(_3D);
     }
 }
 /// <summary>
 /// Quick set from ID.
 /// </summary>
 public void SetSound(uint soundID, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1)
 {
     if (ReadyCheck())
     {
         int soundIndex = dfUnity.SoundReader.GetSoundIndex(soundID);
         SoundIndex = soundIndex;
         Preset     = preset;
         Apply(spatialBlend);
     }
 }
 /// <summary>
 /// Quick set from clip name.
 /// </summary>
 public void SetSound(SoundClips soundClip, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1)
 {
     SoundIndex = (int)soundClip;
     Preset     = preset;
     Apply(spatialBlend);
 }
 /// <summary>
 /// Quick set from index.
 /// </summary>
 public void SetSound(int soundIndex, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1)
 {
     SoundIndex = soundIndex;
     Preset     = preset;
     Apply(spatialBlend);
 }
示例#5
0
 /// <summary>
 /// Quick set from clip name.
 /// </summary>
 public void SetSound(SoundClips soundClip, AudioPresets preset = AudioPresets.OnDemand, bool _3D = true)
 {
     SoundIndex = (int)soundClip;
     Preset     = preset;
     Apply(_3D);
 }
示例#6
0
 /// <summary>
 /// Quick set from index.
 /// </summary>
 public void SetSound(int soundIndex, AudioPresets preset = AudioPresets.OnDemand, bool _3D = true)
 {
     SoundIndex = soundIndex;
     Preset     = preset;
     Apply(_3D);
 }
 /// <summary>
 /// Quick set from ID.
 /// </summary>
 public void SetSound(uint soundID, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1)
 {
     if (ReadyCheck())
     {
         int soundIndex = dfUnity.SoundReader.GetSoundIndex(soundID);
         SoundIndex = soundIndex;
         Preset = preset;
         Apply(spatialBlend);
     }
 }
 /// <summary>
 /// Quick set from clip name.
 /// </summary>
 public void SetSound(SoundClips soundClip, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1)
 {
     SoundIndex = (int)soundClip;
     Preset = preset;
     Apply(spatialBlend);
 }
 /// <summary>
 /// Quick set from index.
 /// </summary>
 public void SetSound(int soundIndex, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1)
 {
     SoundIndex = soundIndex;
     Preset = preset;
     Apply(spatialBlend);
 }