void Start() { controller = GetComponent <ControllerFox>(); maxJumpVelocityOne = Mathf.Abs(gravity) * jumpForceOne; maxJumpVelocityTwo = Mathf.Abs(gravity) * jumpForceTwo; maxJumpVelocityThree = Mathf.Abs(gravity) * jumpForceThree; maxJumpVelocityFour = Mathf.Abs(gravity) * jumpForceFour; minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight); jumpIteration = 0; currentSkidTime = 0; grindDirection = 0; currentWallRunKeyStickTime = 0; currentWallRunRampSlideTime = 0; }
private void Start() { player = GetComponent <PlayerFox>(); controller = GetComponent <ControllerFox>(); }