mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
Merge branch 'animationController' into main
This commit is contained in:
@@ -4,12 +4,17 @@ using UnityEngine;
|
||||
|
||||
public class dMoveWalkState : dMoveBaseState
|
||||
{
|
||||
public override void EnterState(dMoveStateManager mSM, dMoveBaseState previousState){
|
||||
|
||||
//set reference to animator in mSM for each manager
|
||||
public override void EnterState(dMoveStateManager mSM, dMoveBaseState previousState){
|
||||
//get component is semi expensive--may want to ahve all statemanagers have a reference to animator
|
||||
mSM.GetComponent<Animator>().SetBool("isWalking", true);
|
||||
Debug.Log("Entered Walk");
|
||||
}
|
||||
|
||||
public override void ExitState(dMoveStateManager mSM, dMoveBaseState nextState){
|
||||
|
||||
mSM.GetComponent<Animator>().SetBool("isWalking", false);
|
||||
Debug.Log("Exited Walk");
|
||||
}
|
||||
|
||||
public override void UpdateState(dMoveStateManager mSM){
|
||||
|
||||
Reference in New Issue
Block a user