Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 private void Start()
 {
     player     = GetComponent <PlayerFox>();
     controller = GetComponent <ControllerFox>();
 }