1
This commit is contained in:
parent
80c8f92d37
commit
90f9c492ab
@ -32,6 +32,7 @@ void Bullet::Initialize()
|
||||
MoveableEntity::Initialize();
|
||||
RecalcSelfCollider();
|
||||
ability_ = sender.Get()->GetAbility();
|
||||
is_curr_weapon = sender.Get()->GetCurrWeapon()->meta == gun_meta;
|
||||
}
|
||||
|
||||
void Bullet::Update(int delta_time)
|
||||
@ -441,7 +442,7 @@ void Bullet::ProcOilBucketBomb(int delay_time)
|
||||
|
||||
bool Bullet::IsCurrWeapon()
|
||||
{
|
||||
return sender.Get()->GetCurrWeapon()->meta == gun_meta;
|
||||
return is_curr_weapon;
|
||||
}
|
||||
|
||||
void Bullet::AddGunBuff()
|
||||
|
@ -64,6 +64,7 @@ private:
|
||||
CircleCollider* self_collider_ = nullptr;
|
||||
bool later_removed_ = false;
|
||||
std::shared_ptr<Ability> ability_;
|
||||
bool is_curr_weapon = false;
|
||||
|
||||
friend class EntityFactory;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user