Stop velocity on enter death state
This commit is contained in:
parent
67de6189a1
commit
63a63c4225
@ -307,6 +307,7 @@ public class AIEntity : Entity {
|
|||||||
public override void EnterState() {
|
public override void EnterState() {
|
||||||
entity.animator.Play("Death");
|
entity.animator.Play("Death");
|
||||||
decaytimer = 0f;
|
decaytimer = 0f;
|
||||||
|
entity.rb.velocity = Vector2.zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override BaseState? UpdateState(){
|
public override BaseState? UpdateState(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user