// Use this for initialization void Start() { cameraController = GetComponent <CameraController>(); follow = GetComponent <Follow>(); freeForm = GetComponent <FreeForm>(); followDisabled = !follow.follow; }
// Use this for initialization void Start() { cameraController = GetComponent<CameraController>(); follow = GetComponent<Follow>(); freeForm = GetComponent<FreeForm>(); followDisabled = !follow.follow; }
void Start() { cc = GetComponent <CameraController>(); ff = GetComponent <FreeForm>(); sortTargetsMethod = new SortTargetables(); // init the sort method }
void Awake() { ignoreChanges = true; cc = Camera.main.GetComponent<CameraController>(); freeForm = Camera.main.GetComponent<FreeForm>(); optionSmartPivot.isOn = cc.smartPivot; optionOcclusionCheck.isOn = cc.occlusionCheck; inputDesiredDistance.text = cc.desiredDistance.ToString(); inputMaxThickness.text = cc.maxThickness.ToString(); inputZoomOutStepValue.text = cc.zoomOutStepValue.ToString(); inputCollisionDistance.text = cc.collisionDistance.ToString(); optionThicknessCheck.isOn = cc.thicknessCheck; if (freeForm != null) { optionCameraEnabled.isOn = freeForm.cameraEnabled; optionControllerEnabled.isOn = freeForm.controllerEnabled; optionControllerInvertY.isOn = freeForm.controllerInvertY; optionMouseInvertY.isOn = freeForm.mouseInvertY; if (freeForm.cameraMode == CameraMode.Hold) optionCameraMode.value = 0; else optionCameraMode.value = 1; mouseSliderX.value = freeForm.mouseSensitivity.x; mouseSliderY.value = freeForm.mouseSensitivity.y; controllerSliderX.value = freeForm.controllerSensitivity.x; controllerSliderY.value = freeForm.controllerSensitivity.y; } ignoreChanges = false; }
void Start() { cc = GetComponent <CameraController>(); ff = GetComponent <FreeForm>(); }
void Start() { cc = GetComponent<CameraController>(); ff = GetComponent<FreeForm>(); }