SoundManager

Handles all the sounds in FPS Engine.

This can be found in GeneralManagers object within the Player

Functions & Accesors | SoundManager.cs

Instance ( SoundManager ) / Public Static Singleton

SoundManager Singleton

PlaySound( AudioClip clip, float delay, float pitchAdded, bool randomPitch, float spatialBlend )

Plays the desired sound given the parameters.

  • clip: AudioClip to play

  • delay: Amount of time to delay the play. Set to 0 if you need the sound to be played immediately.

  • pitchAdded: Defines the amplitude of the applied pitch, being the applied pitch a random number between -pitchAdded and pitchAdded if randomPitch is enabled

  • randomPitch: Enables and Disables random pitch.

  • spatialBlend: Defines whether the sound will be played in 2D or 3D environments.

Last updated