修复石头吸收子弹问题

This commit is contained in:
aozhiwei 2019-08-15 13:35:41 +08:00
parent 429eeac857
commit 70156f3dc3

View File

@ -53,6 +53,9 @@ bool Entity::TestCollision(Entity* b)
bool Entity::TestCollision(ColliderComponent* b)
{
if (b->owner->dead) {
return false;
}
for (auto& a_collider : colliders) {
if (a_collider->Intersect(b)) {
return true;