This commit is contained in:
Фёдор Веселов 2024-10-03 00:25:57 +05:00
commit 8fdc2a3ed9
7 changed files with 127 additions and 1 deletions

View file

@ -14,6 +14,7 @@ public partial class WallnutBehaviour : Node
public void OnHPChanged(int amount)
{
if(_data.Hp <= _data.MaxHp*2.0/3.0 && _data.Hp > _data.MaxHp/3.0)
{
_player.Play("idle_mid");
@ -22,5 +23,9 @@ public partial class WallnutBehaviour : Node
{
_player.Play("idle_low");
}
else
{
_player.Play("idle_full");
}
}
}