Working on health bar
This commit is contained in:
1 parent
8552725dfc
commit
22b0e1992f
12 files changed
+121
-57
No files matched your search
@@ -160,6 +160,9 @@ public:
|
||||
// Called once when the death animation finishes and the character enters DEATH_IDLE.
|
||||
std::function<void()> onDeathAnimComplete;
|
||||
|
||||
// Called whenever hp changes (e.g. on damage). Arguments: current hp, max hp.
|
||||
std::function<void(float hp, float maxHp)> onHpChanged;
|
||||
|
||||
private:
|
||||
|
||||
std::map<AnimationState, BoneAnimationDataNew> animations;
|
||||
|
||||
Reference in new issue
Block a user