Added animator to no debug

This commit is contained in:
Evan Nydahl
2022-03-07 14:10:49 -06:00
parent ab552e5467
commit ee02e1eb59
20 changed files with 208 additions and 55 deletions

View File

@@ -14,10 +14,12 @@ public class DashDashingState : DashBaseState
public override void EnterState(DashStateManager dSM, DashBaseState previousState){
currentDashTime = 0; // resets dash time
dSM.GetComponent<Animator>().SetBool("isDashing", true);
}
public override void ExitState(DashStateManager dSM, DashBaseState nextState){
moveDirection = Vector3.zero; // resets moveDirection
dSM.GetComponent<Animator>().SetBool("isDashing", false);
}
public override void UpdateState(DashStateManager dSM){