mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 09:54:28 -05:00
Fine tuned animations
This commit is contained in:
@@ -11,10 +11,22 @@ public class dAerialWallRunState : dAerialBaseState
|
||||
aSM.pStats.GravVel = 0; // on entering reset grav vel
|
||||
spaceHeld = true; // prevent accidental wall jumping
|
||||
|
||||
//if left
|
||||
if(aSM.CalculateSide() < 0)
|
||||
{
|
||||
aSM.GetComponent<Animator>().SetBool("isLEFTWallRunning", true);
|
||||
}
|
||||
//if right
|
||||
else if (aSM.CalculateSide() > 0)
|
||||
{
|
||||
aSM.GetComponent<Animator>().SetBool("isRIGHTWallRunning", true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public override void ExitState(dAerialStateManager aSM, dAerialBaseState nextState){
|
||||
|
||||
aSM.GetComponent<Animator>().SetBool("isLEFTWallRunning", false);
|
||||
aSM.GetComponent<Animator>().SetBool("isRIGHTWallRunning", false);
|
||||
}
|
||||
|
||||
public override void UpdateState(dAerialStateManager aSM){
|
||||
|
||||
Reference in New Issue
Block a user