mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-23 10:14:27 -05:00
27 lines
950 B
C#
27 lines
950 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class dOffenseIncapacitatedState : dOffenseBaseState
|
|
{
|
|
public override void EnterState(dOffenseStateManager oSM, dOffenseBaseState previousState){
|
|
|
|
}
|
|
|
|
public override void ExitState(dOffenseStateManager oSM, dOffenseBaseState nextState){
|
|
|
|
}
|
|
|
|
public override void UpdateState(dOffenseStateManager oSM){
|
|
|
|
//if no longer incapacitated then None
|
|
if((oSM.mSM.currentState != oSM.mSM.RagdollState && oSM.mSM.currentState != oSM.mSM.SlideState && oSM.mSM.currentState != oSM.mSM.CrouchState && oSM.mSM.currentState != oSM.mSM.CrouchWalkState) && (oSM.aSM.currentState != oSM.aSM.WallRunState && oSM.aSM.currentState != oSM.aSM.WallIdleState && oSM.aSM.currentState != oSM.aSM.GrappleAirState)){
|
|
oSM.SwitchState(oSM.NoneState);
|
|
}
|
|
}
|
|
|
|
public override void FixedUpdateState(dOffenseStateManager oSM){
|
|
|
|
}
|
|
}
|