aloe
This commit is contained in:
parent
435ca455f0
commit
8fdc2a3ed9
7 changed files with 127 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue