Addtional Animator changes

-fixed some transitions that didn't have variables.
-edited base movement exit/enter times to avoid missed transitions
This commit is contained in:
Evan Nydahl
2022-03-24 19:16:16 -05:00
parent d29c149175
commit d5d946e990
3 changed files with 448 additions and 173 deletions

View File

@@ -15,6 +15,7 @@ public class dMoveSlideState : dMoveBaseState
mSM.pStats.CurTraction = 0.01f;
mSM.moveController.center = new Vector3(0,mSM.moveController.center.y - mSM.moveController.height * .5f,0);
//mSM.moveController.Move(new Vector3(0,-0.1f,0));
mSM.GetComponent<Animator>().SetBool("isSliding", true);
}
public override void ExitState(dMoveStateManager mSM, dMoveBaseState nextState){
@@ -32,6 +33,7 @@ public class dMoveSlideState : dMoveBaseState
else{
mSM.pStats.CurTraction = mSM.pStats.Traction;
}
mSM.GetComponent<Animator>().SetBool("isSliding", false);
}
public override void UpdateState(dMoveStateManager mSM){