Third Person Cover Shooter  1.6
CoverShooter.CharacterSounds Class Reference

Spawns sound instances on various character events. More...

Inheritance diagram for CoverShooter.CharacterSounds:
CoverShooter.ICharacterPhysicsListener CoverShooter.ICharacterHealthListener

Public Member Functions

void OnLand ()
 Character lands on the ground. More...
 
void OnFootstep (Vector3 position)
 Character makes a footstep. More...
 
void OnDead ()
 Character is dead. More...
 
void OnResurrect ()
 Character is no longer dead. More...
 
void OnBlock (Hit hit)
 
void OnJump ()
 Character jumps off the ground. More...
 
void OnTakenHit (Hit hit)
 

Public Attributes

AudioClip [] Footstep
 Possible sounds to play on each footstep. More...
 
AudioClip [] Death
 Possible sounds to play when the character dies. More...
 
AudioClip [] Jump
 Possible sounds to play at the beginning of a jump. More...
 
AudioClip [] Land
 Possible sounds to play when the character lands. More...
 
AudioClip [] Block
 Possible sounds to play when the character blocks a melee attack. More...
 
AudioClip [] Hurt
 Possible sounds to play when the character is hurt. More...
 
AudioClip [] Hit
 Possible sounds to play when the character is hit. More...
 
AudioClip [] BigHit
 Possible sounds to play when the character is dealt a lot of damage by a hit. More...
 
float BigDamageThreshold = 50
 Damage that has to be dealt to play big hit sound. More...
 

Detailed Description

Spawns sound instances on various character events.

Sounds are randomly picked from lists.

Member Function Documentation

◆ OnBlock()

void CoverShooter.CharacterSounds.OnBlock ( Hit  hit)

◆ OnDead()

void CoverShooter.CharacterSounds.OnDead ( )

◆ OnFootstep()

void CoverShooter.CharacterSounds.OnFootstep ( Vector3  position)

Character makes a footstep.

Implements CoverShooter.ICharacterPhysicsListener.

◆ OnJump()

void CoverShooter.CharacterSounds.OnJump ( )

Character jumps off the ground.

Implements CoverShooter.ICharacterPhysicsListener.

◆ OnLand()

void CoverShooter.CharacterSounds.OnLand ( )

Character lands on the ground.

Implements CoverShooter.ICharacterPhysicsListener.

◆ OnResurrect()

void CoverShooter.CharacterSounds.OnResurrect ( )

Character is no longer dead.

Implements CoverShooter.ICharacterHealthListener.

◆ OnTakenHit()

void CoverShooter.CharacterSounds.OnTakenHit ( Hit  hit)

Member Data Documentation

◆ BigDamageThreshold

float CoverShooter.CharacterSounds.BigDamageThreshold = 50

Damage that has to be dealt to play big hit sound.

◆ BigHit

AudioClip [] CoverShooter.CharacterSounds.BigHit

Possible sounds to play when the character is dealt a lot of damage by a hit.

◆ Block

AudioClip [] CoverShooter.CharacterSounds.Block

Possible sounds to play when the character blocks a melee attack.

◆ Death

AudioClip [] CoverShooter.CharacterSounds.Death

Possible sounds to play when the character dies.

◆ Footstep

AudioClip [] CoverShooter.CharacterSounds.Footstep

Possible sounds to play on each footstep.

◆ Hit

AudioClip [] CoverShooter.CharacterSounds.Hit

Possible sounds to play when the character is hit.

◆ Hurt

AudioClip [] CoverShooter.CharacterSounds.Hurt

Possible sounds to play when the character is hurt.

◆ Jump

AudioClip [] CoverShooter.CharacterSounds.Jump

Possible sounds to play at the beginning of a jump.

◆ Land

AudioClip [] CoverShooter.CharacterSounds.Land

Possible sounds to play when the character lands.


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