//#region Animation Controller State Values

        //private const string LocomotionStateName = "Locomotion Blend Tree";
        //private readonly int locomotionStateHash;

        //private readonly int loopingAnimationStateHash;

        //#endregion
        #endregion


        public MeatPuppetAnimation(MeatPuppet parent)
        {
            parentPuppet = parent;

            parentPuppet.AnimatorHook.onStateChange  += OnStateChange;
            parentPuppet.AnimatorHook.onAnimatorMove += OnAnimatorMove;

            //locomotionStateHash = Animator.StringToHash(LocomotionStateName);
            //loopingAnimationStateHash = Animator.StringToHash(LoopAnimationKey);
        }
        public MeatPuppetLocomotion(MeatPuppet parent)
        {
            parentPuppet = parent;
            Reset();

            forwardSpeedKey    = Animator.StringToHash("Forward Speed");
            horizontalSpeedKey = Animator.StringToHash("Horizontal Speed");
            turnSpeedKey       = Animator.StringToHash("Turn Speed");
            groundSteepKey     = Animator.StringToHash("Ground Steep");
        }
Пример #3
0
        //private bool needsGroundPenetrationCorrection = false;
        //private float lastOffset = 0.0f;

        //private float lastGroundPenetration;

        public MeatPuppetLegs(MeatPuppet parent)
        {
            parentPuppet = parent;
        }
Пример #4
0
        //private bool lastLeftFootPlace = false;
        //private bool lastRightFootPlace = false;

        //public MeatPuppetFeet(MeatPuppet parent) {
        //	parentPuppet = parent;

        //}

        private void Start()
        {
            animator     = GetComponent <Animator>();
            parentPuppet = GetComponent <MeatPuppet>();
        }
Пример #5
0
        // private bool waitingForReturnToLocomotion = false;

        public MeatPuppetJump(MeatPuppet parent)
        {
            parentPuppet = parent;

            // parentPuppet.AnimatorHook.onStateChange +=
        }
        private void Start()
        {
            puppet = GetComponent <MeatPuppet>();

            //puppet.movementSettings.avoidStaticObstacles = false;
        }
Пример #7
0
        private void Start()
        {
            parentPuppet = GetComponent <MeatPuppet>();

            InitializeNavAgent();
        }