Fix stompy api for animations

This commit is contained in:
Jens Pitkänen 2019-08-23 00:21:12 +03:00
parent da3a4d1f40
commit 8c91d9f7d9
2 changed files with 6 additions and 3 deletions

View File

@ -21,7 +21,8 @@ namespace Saltosion.OneWeapon.AI.Behaviours {
public float LoweredStompCooldown;
public float LoweredStompCooldownRadius;
public bool Stomping { get { return State == StompState.PreparingStomp || State == StompState.RecoveringFromStomp; } }
public bool PreparingStomp { get { return State == StompState.PreparingStomp; } }
public bool Stomping { get { return State == StompState.RecoveringFromStomp; } }
public bool CoolingDown { get { return State == StompState.CoolingDown; } }
private float CurrentCooldown;

View File

@ -45,8 +45,10 @@ namespace Saltosion.OneWeapon.Enemies {
}
/* TODO: Implement animations for Stompy
if (StompBehaviour.Stomping) {
Anim.Play("Attack");
if (StompBehaviour.PreparingStomp) {
Anim.Play("Prepare");
} else if (StompBehaviour.Stomping) {
Anim.Play("Stomp");
} else {
Anim.Play("Walk");
}