C# Class L1Boss, PaperCowboys

Inheritance: Enemy
Datei anzeigen Open project: Gamieon/PaperCowboys

Public Properties

Property Type Description
sndFire AudioClip

Public Methods

Method Description
FireGun ( ) : void

This function is called in a timer by all clients to try to make this enemy fire. It must be run for all players because the master client can change.

IDamageTaker ( IDamageDealer damageDealer ) : void

Called by the player observing their projectile making contact with this character to inflict damage to this character. This must never be called from an RPC.

PlayFireSound ( ) : void

This function is called in a timer by all clients to try to make this enemy play firing sounds.

Protected Methods

Method Description
FixedUpdate ( ) : void
Start ( ) : void

Private Methods

Method Description
RPCBoss1BeginDying ( ) : void
RPCBoss1TakeDamage ( float damage, NetworkPlayer owningPlayer ) : void
RPCBoss1TakeDamage ( float damage, PhotonPlayer, owningPlayer ) : void
RPCBoss1TakeDamage ( float damage, uLink owningPlayer ) : void
RPCDestroy ( ) : void

Method Details

FireGun() public method

This function is called in a timer by all clients to try to make this enemy fire. It must be run for all players because the master client can change.
public FireGun ( ) : void
return void

FixedUpdate() protected method

protected FixedUpdate ( ) : void
return void

IDamageTaker() public method

Called by the player observing their projectile making contact with this character to inflict damage to this character. This must never be called from an RPC.
public IDamageTaker ( IDamageDealer damageDealer ) : void
damageDealer IDamageDealer
return void

PlayFireSound() public method

This function is called in a timer by all clients to try to make this enemy play firing sounds.
public PlayFireSound ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

Property Details

sndFire public_oe property

The sound effect played when this object fires
public AudioClip sndFire
return AudioClip