C# Class HealthScript, WaitingForHorus

Inheritance: MonoBehaviour
Show file Open project: merveilles/WaitingForHorus Class Usage Examples

Public Properties

Property Type Description
HealthSpheres Renderer[]
PlayerScript PlayerScript
_Health int
_Shield int
deathPrefab GameObject
invulnerabilityTime float
maxHealth int
maxShield int
shieldRegenTime float
shieldRenderer Renderer
timeUntilRespawn float

Public Methods

Method Description
Awake ( ) : void
DeclareHitToOthers ( int damage, Vector3 point, PlayerPresence instigator ) : void
OnDisable ( ) : void
OnEnable ( ) : void
PlayDeathPrefab ( ) : void
Update ( ) : void
UpdateShield ( ) : void

Private Methods

Method Description
DoDamageOwner ( int damage, Vector3 point, PlayerPresence instigator ) : void
OthersReceiveHit ( int damage, Vector3 point, uLink instigatorPresenceViewID ) : void
RemotePlayDeathPrefab ( ) : void
ShotFired ( ) : void
UpdateHealthSphereVisibility ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

DeclareHitToOthers() public method

public DeclareHitToOthers ( int damage, Vector3 point, PlayerPresence instigator ) : void
damage int
point Vector3
instigator PlayerPresence
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PlayDeathPrefab() public method

public PlayDeathPrefab ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateShield() public method

public UpdateShield ( ) : void
return void

Property Details

HealthSpheres public property

public Renderer[] HealthSpheres
return Renderer[]

PlayerScript public property

public PlayerScript PlayerScript
return PlayerScript

_Health public property

public int _Health
return int

_Shield public property

public int _Shield
return int

deathPrefab public property

public GameObject deathPrefab
return GameObject

invulnerabilityTime public property

public float invulnerabilityTime
return float

maxHealth public property

public int maxHealth
return int

maxShield public property

public int maxShield
return int

shieldRegenTime public property

public float shieldRegenTime
return float

shieldRenderer public property

public Renderer shieldRenderer
return Renderer

timeUntilRespawn public property

public float timeUntilRespawn
return float