Flying Piggy 2D Runner Kit  1.0
Complete 2D runner template for Unity
 All Classes Files Functions Variables Enumerations Enumerator Properties
SoundSettings Class Reference
Inheritance diagram for SoundSettings:

Public Types

enum  State { State.MUTE, State.SOUND }
 

Public Member Functions

void SoundOff ()
 
void SoundOn ()
 

Public Attributes

List< AudioClip > playlist
 
float musicVolume = 0.8f
 
float soundVolume = 1f
 
bool destroyOnLoad = true
 

Properties

static SoundSettings Instance [get]
 
State SoundState [get]
 

Detailed Description

Holds background music playlist and determines if sound is muted or audible.

Member Enumeration Documentation

Enumerator
MUTE 
SOUND 

Member Function Documentation

void SoundSettings.SoundOff ( )

Set all sounds off

void SoundSettings.SoundOn ( )

Set all sounds on

Member Data Documentation

bool SoundSettings.destroyOnLoad = true
float SoundSettings.musicVolume = 0.8f
List<AudioClip> SoundSettings.playlist
float SoundSettings.soundVolume = 1f

Property Documentation

SoundSettings SoundSettings.Instance
staticget

Get an instance of SoundSettings

State SoundSettings.SoundState
get

Get current state of the sound


The documentation for this class was generated from the following file: