Plants flash and shovel alt
This commit is contained in:
parent
b4bf3ab8bc
commit
e4c25a1ca5
23 changed files with 451 additions and 195 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