Damage source and effect fix
This commit is contained in:
parent
7aa0aa5bad
commit
c89d93cf24
15 changed files with 52 additions and 34 deletions
|
|
@ -15,7 +15,7 @@ public partial class EatBox : Area2D
|
|||
|
||||
public void Bite()
|
||||
{
|
||||
plant.TakeDamage(_damage);
|
||||
plant?.TakeDamage(_damage,GetParent());
|
||||
}
|
||||
|
||||
public void OnAreaEntered(Area2D area)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue