This commit is contained in:
aozhiwei 2023-03-23 14:52:40 +08:00
parent e48d6a8425
commit 7fb029fb96
2 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,7 @@ void Android::InternalUpdate(int delta_time)
return;
}
if (poisoning) {
poisoning_time += delta_time;
UpdatePoisoning();
}
if (action_type != AT_None) {

View File

@ -69,6 +69,10 @@ void Hero::Initialize()
void Hero::Update(int delta_time)
{
++updated_times_;
if (poisoning) {
poisoning_time += delta_time;
UpdatePoisoning();
}
}
void Hero::OnExplosionHit(Explosion* e)