示例#1
0
文件: Scaler.cs 项目: beegul/game
        // 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);
        }
示例#2
0
文件: Scaler.cs 项目: beegul/game
 // Update is called once per frame
 void Update()
 {
     Crouching.CrouchLogic();
     Jumping.JumpLogic();
 }