Свойство | Тип | Описание | |
---|---|---|---|
HealthBar | GameObject | ||
health | float | ||
healthChance | int | ||
healthDrop | GameObject | ||
typeID | int |
Метод | Описание | |
---|---|---|
OnCollisionEnter2D ( Collision2D c ) : void | ||
Start ( ) : void | ||
Update ( ) : void | ||
setHealthBar ( float newHealth ) : void |
Метод | Описание | |
---|---|---|
WaitForDeathAnimations ( ) : IEnumerator |
public OnCollisionEnter2D ( Collision2D c ) : void | ||
c | Collision2D | |
Результат | void |
public setHealthBar ( float newHealth ) : void | ||
newHealth | float | |
Результат | void |