Sounds Manager

Presented by SoundsManager class, this system is able to play plenty of different sounds at the same moment.

To use this system, inject SoundsManager class into your class, as shown below:

[Inject] private SoundsManager soundsManager;

Parameters in inspector

audioSource – AudioSouce used by Sounds Manager system. By default, there is already presented AudioSource inside the SoundsManager GameObject on scene.

Available methods

void PlayClip(AudioClip clip)

This method plays a certain audio clip once.

Example:

soundsManager.PlayClip(levelUpSound);

void StopAllSounds()

This method stops all currently playing sounds.


Last updated