Class ComponentExtensions
public static class ComponentExtensions
- Inheritance
-
ComponentExtensions
- Inherited Members
Methods
NetworkPlay(AudioSource, NetworkSandbox, ulong)
public static void NetworkPlay(this AudioSource audioSource, NetworkSandbox sandbox, ulong delay = 0)
Parameters
audioSource
AudioSourcesandbox
NetworkSandboxdelay
ulong
NetworkPlayOneShot(AudioSource, NetworkSandbox, AudioClip, float)
public static void NetworkPlayOneShot(this AudioSource audioSource, NetworkSandbox sandbox, AudioClip clip, float volumeScale = 1)
Parameters
audioSource
AudioSourcesandbox
NetworkSandboxclip
AudioClipvolumeScale
float
NetworkPlayScheduled(AudioSource, NetworkSandbox, double)
public static void NetworkPlayScheduled(this AudioSource audioSource, NetworkSandbox sandbox, double time)
Parameters
audioSource
AudioSourcesandbox
NetworkSandboxtime
double
SetEnabled(Component, NetworkSandbox, bool)
public static void SetEnabled(this Component comp, NetworkSandbox sandbox, bool value)
Parameters
comp
Componentsandbox
NetworkSandboxvalue
bool