/*--- Constructor ---*/ public GamepadLookAdapter( MonoBehaviour monoBehavior, FirstPersonViewConfig config, LookInputState lookInputState) { parent = monoBehavior; viewConfig = config; lookInput = lookInputState; turnAccelerationStrength = STICK_LOOK_BASE_MULTIPLIER * Mathf.Clamp(viewConfig.stickTurnAccelerationStrength - 1f, 0f, 1000f); turnSpeed = 0f; }
/*--- Initialization Method ---*/ public void initialize(Camera cam, LookInputState state, FirstPersonViewConfig config) { camera = cam; lookInputState = state; firstPersonViewConfig = config; }