C# Class Thug, PaperCowboys

Inheritance: MonoBehaviour
Show file Open project: Gamieon/PaperCowboys Class Usage Examples

Public Properties

Property Type Description
thugType ThugType

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.

UpdateWalkingDirection ( ) : void

This function is called in regular intervals by all clients to make the thug decide where to walk around if it can.

Protected Methods

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

Private Methods

Method Description
RPCDestroy ( ) : void
RPCThugBeginDying ( ) : void
RPCThugTakeDamage ( float damage, NetworkPlayer owningPlayer ) : void
RPCThugTakeDamage ( float damage, PhotonPlayer, owningPlayer ) : void
RPCThugTakeDamage ( float damage, uLink owningPlayer ) : 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

Start() protected method

protected Start ( ) : void
return void

UpdateWalkingDirection() public method

This function is called in regular intervals by all clients to make the thug decide where to walk around if it can.
public UpdateWalkingDirection ( ) : void
return void

Property Details

thugType public property

The type of the thug.
public ThugType thugType
return ThugType