private Vector3 playerVelocity = Vector3.zero; //The speed and direction the player is moving // Start is called before the first frame update void Start() { controller = GetComponent <CharacterController>(); myCamera = GetComponent <PlayerControllerCamera>(); physicsCalculations = GetComponent <PlayerControllerPhysicsCalulations>(); fps = GetComponent <PlayerControllerFPSDisplay>(); if (calculateFPS) { fps.enabled = true; } else { fps.enabled = false; } myCamera.CameraSetUp(); physicsCalculations.SetUp(); normalHeight = controller.height; crouchHeight = normalHeight * crouchHeight; }
void Start() { physics = GetComponent <PlayerControllerPhysicsCalulations>(); }