Fix stompy api for animations
This commit is contained in:
parent
da3a4d1f40
commit
8c91d9f7d9
@ -21,7 +21,8 @@ namespace Saltosion.OneWeapon.AI.Behaviours {
|
|||||||
public float LoweredStompCooldown;
|
public float LoweredStompCooldown;
|
||||||
public float LoweredStompCooldownRadius;
|
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; } }
|
public bool CoolingDown { get { return State == StompState.CoolingDown; } }
|
||||||
|
|
||||||
private float CurrentCooldown;
|
private float CurrentCooldown;
|
||||||
|
@ -45,8 +45,10 @@ namespace Saltosion.OneWeapon.Enemies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: Implement animations for Stompy
|
/* TODO: Implement animations for Stompy
|
||||||
if (StompBehaviour.Stomping) {
|
if (StompBehaviour.PreparingStomp) {
|
||||||
Anim.Play("Attack");
|
Anim.Play("Prepare");
|
||||||
|
} else if (StompBehaviour.Stomping) {
|
||||||
|
Anim.Play("Stomp");
|
||||||
} else {
|
} else {
|
||||||
Anim.Play("Walk");
|
Anim.Play("Walk");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user