Table of Contents

Class FSoundManager

Namespace
Global
Assembly
Assembly-CSharp.dll
public class FSoundManager
Inheritance
FSoundManager
Inherited Members

Fields

_currentMusicClip

public static AudioClip _currentMusicClip

Field Value

AudioClip

_currentMusicPath

public static string _currentMusicPath

Field Value

string

_gameObject

public static GameObject _gameObject

Field Value

GameObject

_isMuted

public static bool _isMuted

Field Value

bool

_musicSource

public static AudioSource _musicSource

Field Value

AudioSource

_soundClips

public static Dictionary<string, AudioClip> _soundClips

Field Value

Dictionary<string, AudioClip>

_soundSource

public static AudioSource _soundSource

Field Value

AudioSource

_volume

public static float _volume

Field Value

float

resourcePrefix

public static string resourcePrefix

Field Value

string

Properties

isMuted

public static bool isMuted { get; set; }

Property Value

bool

volume

public static float volume { get; set; }

Property Value

float

Methods

Init()

public static void Init()

PlayMusic(string)

public static void PlayMusic(string resourceName)

Parameters

resourceName string

PlayMusic(string, float)

public static void PlayMusic(string resourceName, float volume)

Parameters

resourceName string
volume float

PlayMusic(string, float, bool)

public static void PlayMusic(string resourceName, float volume, bool shouldRestartIfSameSongIsAlreadyPlaying)

Parameters

resourceName string
volume float
shouldRestartIfSameSongIsAlreadyPlaying bool

PlaySound(string)

public static void PlaySound(string resourceName)

Parameters

resourceName string

PlaySound(string, float)

public static void PlaySound(string resourceName, float volume)

Parameters

resourceName string
volume float

PreloadSound(string)

public static void PreloadSound(string resourceName)

Parameters

resourceName string

SetResourcePrefix(string)

public static void SetResourcePrefix(string prefix)

Parameters

prefix string

StopMusic()

public static void StopMusic()

UnloadAllSounds()

public static void UnloadAllSounds()

UnloadAllSoundsAndMusic()

public static void UnloadAllSoundsAndMusic()

UnloadMusic()

public static void UnloadMusic()

UnloadSound(string)

public static void UnloadSound(string resourceName)

Parameters

resourceName string