/// <summary>Plays an SFXObject with the default delay settings.</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="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, Transform Parent = null, bool IsGlobalPosition = true) { return(Play(SFX, Position, SFX.GetDelayDuration(), Parent, IsGlobalPosition)); }
/// <summary>Plays an SFXObject with the default delay settings.</summary> /// <param name="SFX">The SFXObject to play.</param> /// <returns>The Coroutine for delaying this SFXObject (null if no delay is applied).</returns> public Coroutine Play(SFXObject SFX) { return(Play(SFX, SFX.GetDelayDuration())); }