mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 09:54:28 -05:00
Merge branch 'finalController' into main
This commit is contained in:
@@ -10,12 +10,14 @@ public class AerialGlidingState : AerialBaseState
|
||||
//Modify base traction
|
||||
aSM.pStats.CurTraction = 1.0f;
|
||||
aSM.pStats.GravVel = -4;
|
||||
aSM.GetComponent<Animator>().SetBool("isGliding", true);
|
||||
}
|
||||
|
||||
public override void ExitState(AerialStateManager aSM, AerialBaseState nextState){
|
||||
|
||||
//return traction to normal
|
||||
aSM.pStats.CurTraction = aSM.pStats.Traction;
|
||||
aSM.GetComponent<Animator>().SetBool("isGliding", false);
|
||||
}
|
||||
|
||||
public override void UpdateState(AerialStateManager aSM){
|
||||
|
||||
Reference in New Issue
Block a user