C# Class Thug, PaperCowboys

Inheritance: MonoBehaviour
Afficher le fichier Open project: Gamieon/PaperCowboys Class Usage Examples

Méthodes publiques

Свойство Type Description
thugType ThugType

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
FixedUpdate ( ) : void
Start ( ) : void

Private Methods

Méthode 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 méthode

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
Résultat void

FixedUpdate() protected méthode

protected FixedUpdate ( ) : void
Résultat void

IDamageTaker() public méthode

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
Résultat void

Start() protected méthode

protected Start ( ) : void
Résultat void

UpdateWalkingDirection() public méthode

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
Résultat void

Property Details

thugType public_oe property

The type of the thug.
public ThugType thugType
Résultat ThugType