// Start is called before the first frame update void Start() { m_mxmAnimator = GetComponent <MxMAnimator>(); m_controller = GetComponent <CharacterController>(); m_trajectoryGenerator = GetComponent <MxMTrajectoryGenerator>(); m_rootMotionAplicator = GetComponent <MxMRootMotionApplicator>(); m_vaultDetector = GetComponent <VaultDetector>(); m_locomotionSpeedRamp = GetComponent <LocomotionSpeedRamp>(); m_defaultControllerHeight = m_controller.height; m_defaultControllerCenter = m_controller.center.y; m_controller.enableOverlapRecovery = true; m_trajectoryGenerator.InputProfile = m_generalLocomotion; }
// Start is called before the first frame update void Start() { m_mxmAnimator = GetComponentInChildren <MxMAnimator>(); m_locomotionSpeedRamp = GetComponentInChildren <LocomotionSpeedRamp>(); }