C# Class LeopotamGroup.FX.SoundManager

Sound manager.
Inheritance: UnitySingletonBase
ファイルを表示 Open project: Leopotam/LeopotamGroupLibraryUnity

Public Methods

Method Description
PlayFX ( AudioClip clip, SoundFXChannel channel = SoundFXChannel.First, bool forceInterrupt = false ) : void

Play FX.

PlayMusic ( string music, bool isLooped = false ) : void

Play music.

StopFX ( SoundFXChannel channel ) : void

Stop playing FX at channel.

StopMusic ( ) : void

Stop playing music.

ValidateMusic ( ) : void

Validates music after music volume set to zero / restore volume.

Protected Methods

Method Description
OnConstruct ( ) : void

Method Details

OnConstruct() protected method

protected OnConstruct ( ) : void
return void

PlayFX() public method

Play FX.
public PlayFX ( AudioClip clip, SoundFXChannel channel = SoundFXChannel.First, bool forceInterrupt = false ) : void
clip UnityEngine.AudioClip AudioClip object.
channel SoundFXChannel Channel for playing.
forceInterrupt bool Force interrupt previous FX at chanel.
return void

PlayMusic() public method

Play music.
public PlayMusic ( string music, bool isLooped = false ) : void
music string Music name.
isLooped bool Is looped.
return void

StopFX() public method

Stop playing FX at channel.
public StopFX ( SoundFXChannel channel ) : void
channel SoundFXChannel Channel.
return void

StopMusic() public method

Stop playing music.
public StopMusic ( ) : void
return void

ValidateMusic() public method

Validates music after music volume set to zero / restore volume.
public ValidateMusic ( ) : void
return void