C# Class SoundManagementScript, Viewport

Inheritance: MonoBehaviour
Exibir arquivo Open project: tws2xa/Viewport Class Usage Examples

Public Properties

Property Type Description
intro1Clip UnityEngine.AudioClip
intro2Clip UnityEngine.AudioClip
introVolume float
mainSong1Clip UnityEngine.AudioClip
mainSong2Clip UnityEngine.AudioClip
overlay1Clips List
overlay2Clips List
overlayFadeTime float
overlayMethod OverlayMethod
overlayVolume float
playIntro bool
songNum int
soundEnabled bool

Public Methods

Method Description
ChangeOverlayMethod ( OverlayMethod newMethod ) : void

Update the overlay method being used for sound

HandleCameraSwitch ( ) : void

Called whenever the camera changes hands.

PlayNextOverlay ( ) : void

Plays the next overlay in the list. Loops around to beginning, if reached the end of the list.

Start ( ) : void

Use this for initialization

StartBkgMusic ( ) : void

Starts the background music

StartIntroMusic ( ) : void
StopIntroMusic ( ) : void
Update ( ) : void

Called once every frame

Method Details

ChangeOverlayMethod() public method

Update the overlay method being used for sound
public ChangeOverlayMethod ( OverlayMethod newMethod ) : void
newMethod OverlayMethod
return void

HandleCameraSwitch() public method

Called whenever the camera changes hands.
public HandleCameraSwitch ( ) : void
return void

PlayNextOverlay() public method

Plays the next overlay in the list. Loops around to beginning, if reached the end of the list.
public PlayNextOverlay ( ) : void
return void

Start() public method

Use this for initialization
public Start ( ) : void
return void

StartBkgMusic() public method

Starts the background music
public StartBkgMusic ( ) : void
return void

StartIntroMusic() public method

public StartIntroMusic ( ) : void
return void

StopIntroMusic() public method

public StopIntroMusic ( ) : void
return void

Update() public method

Called once every frame
public Update ( ) : void
return void

Property Details

intro1Clip public_oe property

public AudioClip,UnityEngine intro1Clip
return UnityEngine.AudioClip

intro2Clip public_oe property

public AudioClip,UnityEngine intro2Clip
return UnityEngine.AudioClip

introVolume public_oe property

public float introVolume
return float

mainSong1Clip public_oe property

public AudioClip,UnityEngine mainSong1Clip
return UnityEngine.AudioClip

mainSong2Clip public_oe property

public AudioClip,UnityEngine mainSong2Clip
return UnityEngine.AudioClip

overlay1Clips public_oe property

public List overlay1Clips
return List

overlay2Clips public_oe property

public List overlay2Clips
return List

overlayFadeTime public_oe property

public float overlayFadeTime
return float

overlayMethod public_oe property

public OverlayMethod overlayMethod
return OverlayMethod

overlayVolume public_oe property

public float overlayVolume
return float

playIntro public_oe property

public bool playIntro
return bool

songNum public_oe property

public int songNum
return int

soundEnabled public_oe property

public bool soundEnabled
return bool