Fine tuned animations

This commit is contained in:
Evan Nydahl
2022-04-27 18:49:42 -05:00
parent 3ebde4266d
commit 6856a88702
54 changed files with 178405 additions and 23215 deletions

View File

@@ -43,6 +43,7 @@ public class dAerialStateManager : NetworkBehaviour
////Scripts Section
public PlayerStats pStats; // Player Stats
public dMoveStateManager mSM;
private dAnimationManager animationManager;
////
////Variables Section
@@ -117,6 +118,7 @@ public class dAerialStateManager : NetworkBehaviour
rB = GetComponent<Rigidbody>(); //set Rigid Body
parentObj = transform.parent.gameObject; // set parent object
animator = GetComponent<Animator>(); // set animator
animationManager = GetComponent<dAnimationManager>();
////
////Initialize Scripts
@@ -203,6 +205,7 @@ public class dAerialStateManager : NetworkBehaviour
//updates current state and calls logic for entering
currentState = state;
animationManager.updateCurrentPriority();
currentState.EnterState(this, previousState);
}
@@ -493,7 +496,7 @@ public class dAerialStateManager : NetworkBehaviour
}
//Calculate wall direction
float CalculateSide(){
public float CalculateSide(){
if(isWallRunning)
{
Vector3 heading = lastWallPosition - transform.position;