public GroundedController(PlayerController playerController) : base(playerController) { if (playerController.CrouchSettings.EnableCrouching) { _crouchController = new CrouchController(PlayerController); } }
void Start() { this.crouchControllerScript = GetComponent<CrouchController>(); healthScript = GetComponent<Health>(); this.isFalling = false; }
void Start() { m_characterController = GetComponent <CharacterController>(); m_sprintController = GetComponent <SprintController>(); m_crouchController = GetComponent <CrouchController>(); }
void Start() { this.crouchControllerScript = GetComponent <CrouchController>(); healthScript = GetComponent <Health>(); this.isFalling = false; }