C# Класс PlayerOnFoot, PaperCowboys

Characters that belong to players may have this as a component. What makes this unique from PlayerCharacter is it polls for movements, as well as damage management.
Наследование: PlayerCharacter, IInputPoller, IDamageTaker
Показать файл Открыть проект

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

Метод Описание
OnPhotonInstantiate ( PhotonMessageInfo, info ) : void

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

Метод Описание
Awake ( ) : void
DestroyThisCharacter ( ) : void

Called by the owning client to destroy this character

Start ( ) : void

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

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

IInputPoller ( ) : bool

Called to begin polling this input object

IInputPoller ( ) : void

Called when polling has finished

IInputPoller ( Rect screenArea ) : void

Called to render the GUI

LateUpdate ( ) : void
RPCDestroy ( ) : void
RPCNetworkInstantiate ( NetworkPlayer owner ) : void
RPCPlayerOnFootBeginDying ( ) : void
RPCPlayerOnFootTakeDamage ( float damage ) : void
UpdateAim ( ) : void

Called by the owning client from IInputPoller.Poll to update the gun aim.

UpdatePlayerMovements ( ) : void

Called by the owning client from IInputPoller.Poll to update player movement states

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

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

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

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

Called by the owning client to destroy this character
protected DestroyThisCharacter ( ) : void
Результат void

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

public OnPhotonInstantiate ( PhotonMessageInfo, info ) : void
info PhotonMessageInfo,
Результат void

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

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