Click or drag to resize

ExtensionMethodsPlayDelayed Method

Plays an array of AudioSources after a delay.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void PlayDelayed(
	this AudioSource[] audioSources,
	float secondsForDelay
)

Parameters

audioSources
Type: AudioSource
The array of audio sources that will be played.
secondsForDelay
Type: SystemSingle
The number of seconds to wait before playing the clip.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also