Class SoundSfxObject
- Namespace
- WitShells.ThirdPersonControl
ScriptableObject containing sound effects for the third-person controller. Create via: Create > WitShells > ThirdPersonControl > Sound Effects
public class SoundSfxObject : ScriptableObject
- Inheritance
-
SoundSfxObject
Fields
FootstepSounds
public AudioClip[] FootstepSounds
Field Value
- AudioClip[]
jumpSound
public AudioClip jumpSound
Field Value
- AudioClip
landSound
public AudioClip landSound
Field Value
- AudioClip
Properties
Volume
Master volume for all sounds.
public float Volume { get; set; }
Property Value
Methods
PlayClip(AudioClip, Vector3)
Plays a specific audio clip at the given position.
public void PlayClip(AudioClip clip, Vector3 position)
Parameters
clipAudioClippositionVector3
PlayClip(AudioClip, Vector3, float)
Plays a specific audio clip at the given position with custom volume.
public void PlayClip(AudioClip clip, Vector3 position, float customVolume)
Parameters
clipAudioClippositionVector3customVolumefloat
PlayFootStep(Vector3)
Plays a random footstep sound at the specified position.
public void PlayFootStep(Vector3 position)
Parameters
positionVector3
PlayJumpSound(Vector3)
Plays the jump sound at the specified position.
public void PlayJumpSound(Vector3 position)
Parameters
positionVector3
PlayLandSound(Vector3)
Plays the landing sound at the specified position.
public void PlayLandSound(Vector3 position)
Parameters
positionVector3