C# Class EnemyDamageControl, scriptcaster

Inheritance: MonoBehaviour
Datei anzeigen Open project: crazymeeshu/scriptcaster

Public Properties

Property Type Description
HealthBar GameObject
health float
healthChance int
healthDrop GameObject
typeID int

Public Methods

Method Description
OnCollisionEnter2D ( Collision2D c ) : void
Start ( ) : void
Update ( ) : void
setHealthBar ( float newHealth ) : void

Private Methods

Method Description
WaitForDeathAnimations ( ) : IEnumerator

Method Details

OnCollisionEnter2D() public method

public OnCollisionEnter2D ( Collision2D c ) : void
c Collision2D
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

setHealthBar() public method

public setHealthBar ( float newHealth ) : void
newHealth float
return void

Property Details

HealthBar public_oe property

public GameObject HealthBar
return GameObject

health public_oe property

public float health
return float

healthChance public_oe property

public int healthChance
return int

healthDrop public_oe property

public GameObject healthDrop
return GameObject

typeID public_oe property

public int typeID
return int