C# Class ProjectStorms.WeaponSFX

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: patferguson/Storms-Project Class Usage Examples

Public Properties

Property Type Description
loopOnSpawn bool
makeNoiseOnSpawn bool
randomPitchOnSpawn bool
sfx AudioClip

Public Methods

Method Description
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
PlaySound ( bool a_looping, bool a_randomPitch ) : void
SetSound ( AudioClip a_overrideClip, bool a_looping, bool a_randomPitch ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PlaySound() public method

public PlaySound ( bool a_looping, bool a_randomPitch ) : void
a_looping bool
a_randomPitch bool
return void

SetSound() public method

public SetSound ( AudioClip a_overrideClip, bool a_looping, bool a_randomPitch ) : void
a_overrideClip AudioClip
a_looping bool
a_randomPitch bool
return void

Property Details

loopOnSpawn public property

public bool loopOnSpawn
return bool

makeNoiseOnSpawn public property

public bool makeNoiseOnSpawn
return bool

randomPitchOnSpawn public property

public bool randomPitchOnSpawn
return bool

sfx public property

public AudioClip sfx
return AudioClip