Skip to content

Health Component

Mikhail Albershtein edited this page Apr 4, 2020 · 2 revisions

Purpose

This class is in charge of dealing with taking damage, applying armour, dying and other things that are related to the character's health.
After taking damage the character is invincible for a period of time, so the character can't die in a second.
Because of not having the update method(it's not a monobehaviour class and either is called every frame) I create a helper class TimerManager for setting the timers with a callback function.

TiemrManager