void Start() { if( isCamera ) { instance = this; } startRotation = transform.localRotation; if( _camPos != null ) camPosBasePosition = _camPos.transform.localPosition; rotationX = transform.rotation.eulerAngles.y; rotationY = transform.rotation.eulerAngles.x; inputSensitivity += sensitivity; inputSensitivity *= 100f; if( inputSensitivity <= 0f ) inputSensitivity = 0.1f; }
void Start() { if (isCamera) { instance = this; } startRotation = transform.localRotation; if (_camPos != null) { camPosBasePosition = _camPos.transform.localPosition; } rotationX = transform.rotation.eulerAngles.y; rotationY = transform.rotation.eulerAngles.x; inputSensitivity += sensitivity; inputSensitivity *= 100f; if (inputSensitivity <= 0f) { inputSensitivity = 0.1f; } }