Click or drag to resize

ExtensionMethodsPlayScheduled Method

Plays an array of AudioSources at a certain time.

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

Parameters

audioSources
Type: AudioSource
The array of audio sources that will be paused.
timeToPlay
Type: SystemDouble
Time in seconds on the absolute time-line that AudioSettings.dspTime refers to for when the AudioSources should start playing.

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