Damage source and effect fix

This commit is contained in:
Фёдор Веселов 2024-10-06 19:55:42 +05:00
commit c89d93cf24
15 changed files with 52 additions and 34 deletions

View file

@ -12,7 +12,7 @@ public partial class ExplosionComponent : Area2D
foreach(var zombie in GetOverlappingAreas())
{
var zombieData = zombie.GetParent<RuntimeZombieData>();
zombieData?.TakeDamage(damage);
zombieData?.TakeDamage(damage,GetParent());
}
GetParent<RuntimePlantData>().Kill();