SunsetHigh.BGMusic.setVolume C# (CSharp) Method

setVolume() public static method

Changes the volume of playback; BGMusic.SILENCE can be used for muting the song, while BGMusic.FULL_VOLUME can unmute.
public static setVolume ( float volume ) : void
volume float
return void
        public static void setVolume(float volume)
        {
            if (file != null)
                file.Volume = volume;
        }