Beispiel #1
0
        private void UpdateMovements()
        {
            if (characterTransform != null)
            {
                if (headMovements && headMovements.enabled)
                {
                    headMovements.UpdateMovements();
                }
                if (leftHandMovements && leftHandMovements.enabled)
                {
                    leftHandMovements.UpdateMovements();
                }
                if (rightHandMovements && rightHandMovements.enabled)
                {
                    rightHandMovements.UpdateMovements();
                }
                if (bodyMovements != null)
                {
                    bodyMovements.UpdateBodyMovements();
                }
            }

            CalculateSpeed();
            PlaceBodyCapsule();
            DetermineCollision();
            if (useGravity)
            {
                groundCheck();
            }
        }
Beispiel #2
0
        private void UpdateMovements()
        {
            if (headMovements && headMovements.enabled)
            {
                headMovements.UpdateMovements();
            }
            if (leftHandMovements && leftHandMovements.enabled)
            {
                leftHandMovements.UpdateMovements();
            }
            if (rightHandMovements && rightHandMovements.enabled)
            {
                rightHandMovements.UpdateMovements();
            }

            CheckGrounded();
        }