C# Class HealthScript, WaitingForHorus

Inheritance: MonoBehaviour
显示文件 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_oe property

public Renderer[] HealthSpheres
return Renderer[]

PlayerScript public_oe property

public PlayerScript PlayerScript
return PlayerScript

_Health public_oe property

public int _Health
return int

_Shield public_oe property

public int _Shield
return int

deathPrefab public_oe property

public GameObject deathPrefab
return GameObject

invulnerabilityTime public_oe property

public float invulnerabilityTime
return float

maxHealth public_oe property

public int maxHealth
return int

maxShield public_oe property

public int maxShield
return int

shieldRegenTime public_oe property

public float shieldRegenTime
return float

shieldRenderer public_oe property

public Renderer shieldRenderer
return Renderer

timeUntilRespawn public_oe property

public float timeUntilRespawn
return float