C# Класс Thug, PaperCowboys

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
thugType ThugType

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
FixedUpdate ( ) : void
Start ( ) : void

Приватные методы

Метод Описание
RPCDestroy ( ) : void
RPCThugBeginDying ( ) : void
RPCThugTakeDamage ( float damage, NetworkPlayer owningPlayer ) : void
RPCThugTakeDamage ( float damage, PhotonPlayer, owningPlayer ) : void
RPCThugTakeDamage ( float damage, uLink owningPlayer ) : void

Описание методов

FireGun() публичный Метод

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
Результат void

FixedUpdate() защищенный Метод

protected FixedUpdate ( ) : void
Результат void

IDamageTaker() публичный Метод

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
Результат void

Start() защищенный Метод

protected Start ( ) : void
Результат void

UpdateWalkingDirection() публичный Метод

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
Результат void

Описание свойств

thugType публичное свойство

The type of the thug.
public ThugType thugType
Результат ThugType