C# Class CharacterHealth, JuniorProject

Inheritance: MonoBehaviour
ファイルを表示 Open project: MilesMeacham/JuniorProject Class Usage Examples

Public Properties

Property Type Description
health float
healthBar Image
hurtSound FMODUnity.StudioEventEmitter
invincibilityTime float
invincible bool
maxHealth float
minHealth float
possibleMaxHealth float

Public Methods

Method Description
Invincibility ( ) : void
InvincibilityCo ( ) : IEnumerator
Start ( ) : void
Update ( ) : void
addHealth ( float healthToAdd ) : void
addMaxHealth ( float maxHealthToAdd ) : void
destroyObject ( ) : void
removeHealth ( float healthToRemove ) : void
removeMaxHealth ( float maxHealthToRemove ) : void

Method Details

Invincibility() public method

public Invincibility ( ) : void
return void

InvincibilityCo() public method

public InvincibilityCo ( ) : IEnumerator
return IEnumerator

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

addHealth() public method

public addHealth ( float healthToAdd ) : void
healthToAdd float
return void

addMaxHealth() public method

public addMaxHealth ( float maxHealthToAdd ) : void
maxHealthToAdd float
return void

destroyObject() public method

public destroyObject ( ) : void
return void

removeHealth() public method

public removeHealth ( float healthToRemove ) : void
healthToRemove float
return void

removeMaxHealth() public method

public removeMaxHealth ( float maxHealthToRemove ) : void
maxHealthToRemove float
return void

Property Details

health public_oe property

public float health
return float

healthBar public_oe property

public Image healthBar
return Image

hurtSound public_oe property

public StudioEventEmitter,FMODUnity hurtSound
return FMODUnity.StudioEventEmitter

invincibilityTime public_oe property

public float invincibilityTime
return float

invincible public_oe property

public bool invincible
return bool

maxHealth public_oe property

public float maxHealth
return float

minHealth public_oe property

public float minHealth
return float

possibleMaxHealth public_oe property

public float possibleMaxHealth
return float