Plants flash and shovel alt
This commit is contained in:
parent
24b660e3a5
commit
dff15c9df3
23 changed files with 441 additions and 185 deletions
|
|
@ -11,10 +11,10 @@ public partial class DegradingSprite : Sprite2D
|
|||
|
||||
public override void _Ready()
|
||||
{
|
||||
armor.ArmorDamaged += OnArmorHPChanged;
|
||||
armor.Damaged += OnDamaged;
|
||||
}
|
||||
|
||||
private void OnArmorHPChanged(float hp)
|
||||
private void OnDamaged()
|
||||
{
|
||||
float percent = armor._hp / armor.MaxHP;
|
||||
for (int i = 0; i < degradationStages.Count; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue