private void Start() { currentJumpHeight = jumpHeight; currentSpeed = speed; controller = GetComponent <CharacterController>(); cam = GameObject.Find("Main Camera").transform; cinemachine = GameObject.Find("ThirdPersonCamera").GetComponent <CinemachineFreeLook>(); bodyMenu = GetComponent <BodyMenu>(); yCameraSpeedStart = cinemachine.m_YAxis.m_MaxSpeed; //Sets a speed to be returned to xCameraSpeedStart = cinemachine.m_XAxis.m_MaxSpeed; //Sets a speed to be returned to animManager = GetComponent <AnimationManager>(); }
// Start is called before the first frame update void Start() { bodySwap = GetComponent <BodySwapping>(); animManager = GetComponent <AnimationManager>(); bodyMenu = GetComponent <BodyMenu>(); }