| AudioSourceExtSafeStop Method |
Convenience wrapper around AudioSource.Stop.
Namespace:
RavingBots.MagicGestures.Utils
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static void SafeStop(
this AudioSource audioSource
)
Parameters
- audioSource
- Type: AudioSource
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
AudioSource. 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).
Remarks
This method will call Stop if the source is not
and has a clip assigned.
See Also