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

@ -15,7 +15,7 @@ public partial class EatBox : Area2D
public void Bite()
{
plant.TakeDamage(_damage);
plant?.TakeDamage(_damage,GetParent());
}
public void OnAreaEntered(Area2D area)