Third Person Cover Shooter  1.6
CoverShooter.GunEffects Class Reference

Spawns effects prefabs on various gun events like reloads or gunfire. More...

Inheritance diagram for CoverShooter.GunEffects:
CoverShooter.IGunListener

Public Member Functions

void OnEject ()
 Play magazine eject effect. More...
 
void OnRechamber ()
 Play magazine load effect. More...
 
void OnPump ()
 Play shotgun pump effect. More...
 
void OnFire (float delay)
 Play fire effects delayed by the given amount of time in seconds. More...
 
void OnEmptyFire ()
 Play an effect when the gun fails to fire. More...
 
void OnFullyLoaded ()
 Event spawned all the bullets are loaded. More...
 
void OnBulletLoad ()
 Bullet load event. More...
 
void OnPumpStart ()
 Event spawned before pumping. More...
 
void OnMagazineLoadStart ()
 Event spawned when magazine loading starts. More...
 
void OnBulletLoadStart ()
 Event spawned when bullet loading starts. More...
 

Public Attributes

GameObject Eject
 Object to instantiate when ejecting a magazine. More...
 
GameObject Rechamber
 Object to instantiate when a magazine is put inside the gun. More...
 
GameObject Fire
 Object to instantiate on each bullet fire. More...
 
GameObject Pump
 Object to instantiate on each shotgun pump. More...
 
GameObject EmptyFire
 Object to instantiate on each fire attempt with an empty magazine. More...
 
GameObject Shell
 Object to instantiate to simulate shell ejection. More...
 

Detailed Description

Spawns effects prefabs on various gun events like reloads or gunfire.

Member Function Documentation

◆ OnBulletLoad()

void CoverShooter.GunEffects.OnBulletLoad ( )

Bullet load event.

Implements CoverShooter.IGunListener.

◆ OnBulletLoadStart()

void CoverShooter.GunEffects.OnBulletLoadStart ( )

Event spawned when bullet loading starts.

Implements CoverShooter.IGunListener.

◆ OnEject()

void CoverShooter.GunEffects.OnEject ( )

Play magazine eject effect.

Implements CoverShooter.IGunListener.

◆ OnEmptyFire()

void CoverShooter.GunEffects.OnEmptyFire ( )

Play an effect when the gun fails to fire.

Implements CoverShooter.IGunListener.

◆ OnFire()

void CoverShooter.GunEffects.OnFire ( float  delay)

Play fire effects delayed by the given amount of time in seconds.

Parameters
delayTime to delay the creation of effects.

Implements CoverShooter.IGunListener.

◆ OnFullyLoaded()

void CoverShooter.GunEffects.OnFullyLoaded ( )

Event spawned all the bullets are loaded.

Implements CoverShooter.IGunListener.

◆ OnMagazineLoadStart()

void CoverShooter.GunEffects.OnMagazineLoadStart ( )

Event spawned when magazine loading starts.

Implements CoverShooter.IGunListener.

◆ OnPump()

void CoverShooter.GunEffects.OnPump ( )

Play shotgun pump effect.

Implements CoverShooter.IGunListener.

◆ OnPumpStart()

void CoverShooter.GunEffects.OnPumpStart ( )

Event spawned before pumping.

Implements CoverShooter.IGunListener.

◆ OnRechamber()

void CoverShooter.GunEffects.OnRechamber ( )

Play magazine load effect.

Implements CoverShooter.IGunListener.

Member Data Documentation

◆ Eject

GameObject CoverShooter.GunEffects.Eject

Object to instantiate when ejecting a magazine.

◆ EmptyFire

GameObject CoverShooter.GunEffects.EmptyFire

Object to instantiate on each fire attempt with an empty magazine.

◆ Fire

GameObject CoverShooter.GunEffects.Fire

Object to instantiate on each bullet fire.

◆ Pump

GameObject CoverShooter.GunEffects.Pump

Object to instantiate on each shotgun pump.

◆ Rechamber

GameObject CoverShooter.GunEffects.Rechamber

Object to instantiate when a magazine is put inside the gun.

◆ Shell

GameObject CoverShooter.GunEffects.Shell

Object to instantiate to simulate shell ejection.


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