Editor: Music volume!

This commit is contained in:
Jenny Crowe
2022-03-19 05:46:38 -07:00
parent e3c9d9f3f5
commit 9f10dbd3ca
9 changed files with 797 additions and 2 deletions

View File

@ -240,6 +240,11 @@ namespace HeavenStudio
secPerBeat = 60f / songBpm;
}
public void SetVolume(int percent)
{
musicSource.volume = percent / 100f;
}
public float SongLengthInBeats()
{
if (!musicSource.clip) return 0;