public void Play(MusicSymbol symbol, float fadeOutDuration = 1f, float position = 0f, float fadeInDuration = 0f) { if (symbol) { Play(MusicStore?.Get(symbol.name), fadeOutDuration: fadeOutDuration, position: position, fadeInDuration: fadeInDuration); } else { Play(default(Music), fadeOutDuration: fadeOutDuration); } }
public void Play(string musicName, float fadeOutDuration = 1f, float position = 0f, float fadeInDuration = 0f) { Play(MusicStore?.Get(musicName), fadeOutDuration: fadeOutDuration, position: position, fadeInDuration: fadeInDuration); }