예제 #1
0
 /// <summary>Plays an SFXObject.</summary>
 /// <param name="SFX">The SFXObject to play.</param>
 /// <param name="DelayDuration">Duration of the global delay for the SFXObject.</param>
 /// <param name="Volume">The volume multiplier of the SFXObject to be used.</param>
 /// <param name="Pitch">The pitch multiplier of the SFXObject to be used.</param>
 /// <returns>The Coroutine for delaying this SFXObject (null if no delay is applied).</returns>
 public Coroutine Play(SFXObject SFX, float DelayDuration, float Volume, float Pitch)
 {
     return(SFX.Play(DelayDuration, Volume, Pitch));
 }
예제 #2
0
 /// <summary>Plays an SFXObject.</summary>
 /// <param name="SFX">The SFXObject to play.</param>
 /// <param name="Position">The position in 3D space to play the SFXObject at.</param>
 /// <param name="DelayDuration">Duration of the global delay for the SFXObject.</param>
 /// <param name="Volume">The volume multiplier of the SFXObject to be used.</param>
 /// <param name="Pitch">The pitch multiplier of the SFXObject to be used.</param>
 /// <param name="Parent">Parent transform to assign to the SFXObject (Optional).</param>
 /// <param name="IsGlobalPosition">If the position to play the SFXObject at is global or local to the parent.</param>
 /// <returns>The Coroutine for delaying this SFXObject (null if no delay is applied).</returns>
 public Coroutine Play(SFXObject SFX, Vector3 Position, float DelayDuration, float Volume, float Pitch, Transform Parent = null, bool IsGlobalPosition = true)
 {
     return(SFX.Play(Position, DelayDuration, Volume, Pitch, Parent, IsGlobalPosition));
 }
예제 #3
0
 /// <summary>Plays an SFXObject.</summary>
 /// <param name="SFX">The SFXObject to play.</param>
 /// <param name="DelayDuration">Duration of the global delay for the SFXObject.</param>
 /// <returns>The Coroutine for delaying this SFXObject (null if no delay is applied).</returns>
 public Coroutine Play(SFXObject SFX, float DelayDuration)
 {
     return(SFX.Play(DelayDuration));
 }