1
This commit is contained in:
parent
89276a5188
commit
7db6002282
@ -423,7 +423,9 @@ void Trigger::DispatchEvent(int event_id, const std::vector<std::any>& param)
|
||||
|
||||
void Trigger::BulletHit(Bullet* bullet)
|
||||
{
|
||||
DispatchEvent(kBulletHit, {bullet});
|
||||
if (bullet->sender.Get()) {
|
||||
bullet->sender.Get()->DispatchEvent(kBulletHit, {bullet});
|
||||
}
|
||||
}
|
||||
|
||||
void Trigger::ShieldDestory()
|
||||
|
Loading…
x
Reference in New Issue
Block a user