mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-22 17:54:26 -05:00
27 lines
673 B
C#
27 lines
673 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class dMoveRecoveringState : dMoveBaseState
|
|
{
|
|
////// ADD SOMETHING THAT CHECKS ANIMATION FINISH BEFORE GO TO IDLE
|
|
|
|
public override void EnterState(dMoveStateManager mSM, dMoveBaseState previousState){
|
|
mSM.CancelMomentum(); // reset player variables
|
|
}
|
|
|
|
public override void ExitState(dMoveStateManager mSM, dMoveBaseState nextState){
|
|
|
|
}
|
|
|
|
public override void UpdateState(dMoveStateManager mSM){
|
|
|
|
//swap to idle state
|
|
mSM.SwitchState(mSM.IdleState);
|
|
}
|
|
|
|
public override void FixedUpdateState(dMoveStateManager mSM){
|
|
|
|
}
|
|
}
|