Third Person Cover Shooter  1.6
CoverShooter.CharacterEffects Class Reference

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

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

Public Member Functions

void OnLand ()
 Instantiates the landing effect when the character lands. More...
 
void OnTakenHit (Hit hit)
 Instantiates the hit effect when the character is hit. More...
 
void OnFootstep (Vector3 position)
 Instantiates the step effect. More...
 
void OnDead ()
 Instantiates the death effect. More...
 
void OnResurrect ()
 Instantiates the resurrection event. More...
 
void OnBlock (Hit hit)
 Instantiates the block event. More...
 
void OnJump ()
 Instantiates the jump effect. More...
 

Public Attributes

GameObject Step
 Effect prefab to instantiate on each character step. More...
 
GameObject Land
 Effect prefab to instantiate when the character lands on ground. More...
 
GameObject Death
 Effect prefab to instantiate when the character dies. More...
 
GameObject Resurrection
 Effect prefab to instantiate when the character resurrects. More...
 
GameObject Jump
 Effect prefab to instantiate at the beginning of a jump. More...
 
GameObject Hurt
 Effect prefab to instantiate when the character is hurt. More...
 
GameObject Block
 Effect prefab to instantiate when the character blocks a melee attack. More...
 
GameObject Hit
 Effect prefab to instantiate when the character is hit. More...
 
GameObject BigHit
 Effect prefab to instantiate 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 effect. More...
 

Detailed Description

Spawns prefab instances on various character events.

Member Function Documentation

◆ OnBlock()

void CoverShooter.CharacterEffects.OnBlock ( Hit  hit)

Instantiates the block event.

◆ OnDead()

void CoverShooter.CharacterEffects.OnDead ( )

Instantiates the death effect.

Implements CoverShooter.ICharacterHealthListener.

◆ OnFootstep()

void CoverShooter.CharacterEffects.OnFootstep ( Vector3  position)

Instantiates the step effect.

Implements CoverShooter.ICharacterPhysicsListener.

◆ OnJump()

void CoverShooter.CharacterEffects.OnJump ( )

Instantiates the jump effect.

Implements CoverShooter.ICharacterPhysicsListener.

◆ OnLand()

void CoverShooter.CharacterEffects.OnLand ( )

Instantiates the landing effect when the character lands.

Implements CoverShooter.ICharacterPhysicsListener.

◆ OnResurrect()

void CoverShooter.CharacterEffects.OnResurrect ( )

Instantiates the resurrection event.

Implements CoverShooter.ICharacterHealthListener.

◆ OnTakenHit()

void CoverShooter.CharacterEffects.OnTakenHit ( Hit  hit)

Instantiates the hit effect when the character is hit.

Member Data Documentation

◆ BigDamageThreshold

float CoverShooter.CharacterEffects.BigDamageThreshold = 50

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

◆ BigHit

GameObject CoverShooter.CharacterEffects.BigHit

Effect prefab to instantiate when the character is dealt a lot of damage by a hit.

◆ Block

GameObject CoverShooter.CharacterEffects.Block

Effect prefab to instantiate when the character blocks a melee attack.

◆ Death

GameObject CoverShooter.CharacterEffects.Death

Effect prefab to instantiate when the character dies.

◆ Hit

GameObject CoverShooter.CharacterEffects.Hit

Effect prefab to instantiate when the character is hit.

◆ Hurt

GameObject CoverShooter.CharacterEffects.Hurt

Effect prefab to instantiate when the character is hurt.

◆ Jump

GameObject CoverShooter.CharacterEffects.Jump

Effect prefab to instantiate at the beginning of a jump.

◆ Land

GameObject CoverShooter.CharacterEffects.Land

Effect prefab to instantiate when the character lands on ground.

◆ Resurrection

GameObject CoverShooter.CharacterEffects.Resurrection

Effect prefab to instantiate when the character resurrects.

◆ Step

GameObject CoverShooter.CharacterEffects.Step

Effect prefab to instantiate on each character step.


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