maybe fixed issue with movestate reference

This commit is contained in:
Melbyj1125
2022-03-25 14:07:48 -05:00
parent 516645aa3d
commit fc1f1cb68f
5 changed files with 55 additions and 1 deletions

View File

@@ -143,6 +143,26 @@ public class AerialStateManager : NetworkBehaviour
}
void Update(){
if(currentState == null){
//players starting state
currentState = GroundedState;
previousState = GroundedState;
currentState.EnterState(this, previousState);
////Initialize Variables
//Wallrun Variables
directions = new Vector3[]{
Vector3.right,
Vector3.right + Vector3.forward,
Vector3.forward,
Vector3.left + Vector3.forward,
Vector3.left
};
//Grapple Variables
hookPoints = GameObject.FindGameObjectsWithTag("HookPoint");
////
}
if (!IsLocalPlayer) { return; }