description requests
This commit is contained in:
parent
de2e8b1e50
commit
6fbae10750
35 changed files with 359 additions and 154 deletions
|
|
@ -12,6 +12,7 @@ public partial class EatBox : Area2D
|
|||
[Export]
|
||||
private AudioStream biteSound = ResourceLoader.Load<AudioStream>("uid://dyid55nhflwyn");
|
||||
private RuntimePlantData plant;
|
||||
public float Damage => _damage.GetValue();
|
||||
|
||||
public bool isEating = false;
|
||||
|
||||
|
|
@ -19,7 +20,7 @@ public partial class EatBox : Area2D
|
|||
{
|
||||
if (GetParent<RuntimeZombieData>().AbleToEat)
|
||||
{
|
||||
plant?.TakeDamage((int)_damage.GetValue(), GetParent());
|
||||
plant?.TakeDamage(Damage, GetParent());
|
||||
AudioSequencer.Play("bite", biteSound);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue