//#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"); }
//private bool needsGroundPenetrationCorrection = false; //private float lastOffset = 0.0f; //private float lastGroundPenetration; public MeatPuppetLegs(MeatPuppet parent) { parentPuppet = parent; }
//private bool lastLeftFootPlace = false; //private bool lastRightFootPlace = false; //public MeatPuppetFeet(MeatPuppet parent) { // parentPuppet = parent; //} private void Start() { animator = GetComponent <Animator>(); parentPuppet = GetComponent <MeatPuppet>(); }
// private bool waitingForReturnToLocomotion = false; public MeatPuppetJump(MeatPuppet parent) { parentPuppet = parent; // parentPuppet.AnimatorHook.onStateChange += }
private void Start() { puppet = GetComponent <MeatPuppet>(); //puppet.movementSettings.avoidStaticObstacles = false; }
private void Start() { parentPuppet = GetComponent <MeatPuppet>(); InitializeNavAgent(); }