Exemplo n.º 1
0
        // Use this for initialization
        void Start()
        {
            animator            = GetComponent <Animator>();
            characterController = GetComponent <CharacterController>();

            //Initialize the crouch class with default values.
            Crouching.Initialize(characterController.height, characterController.center, characterController, animator);
        }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     Crouching.CrouchLogic();
     Jumping.JumpLogic();
 }