Ejemplo n.º 1
0
    public void SetupPortalRecursion()
    {
        portalRecursionSlider.onValueChanged.RemoveAllListeners();
        portalRecursionSlider.onValueChanged.AddListener(delegate
                                                         { SetPortalRecursion(); });
        portalRecursionSlider.value = OptionsPreferencesManager.GetPortalRecursion();

        CameraMove cameraMove = GetComponentInParent <CameraMove>();

        if (cameraMove != null)
        {
            recursivePortalCamera = cameraMove.GetComponentInChildren <RecursivePortalCamera>();
        }
    }
Ejemplo n.º 2
0
    public void SetupCameraFOV()
    {
        if (cameraFOV == null)
        {
            GameObject newDropdown = Instantiate(sliderItemPrefab, scrollViewContent);
            cameraFOV = newDropdown.GetComponent <SliderItem>();
        }
        cameraFOV.Init("Field Of View", OptionsPreferencesManager.GetCameraFOV(), SetCameraFOV, 60, 130, true);

        CameraMove cameraMove = GetComponentInParent <CameraMove>();

        if (cameraMove != null)
        {
            playerCamera = cameraMove.GetComponentInChildren <Camera>();
        }
    }
Ejemplo n.º 3
0
    public void SetupCameraFOV()
    {
        cameraFOVSlider.onValueChanged.RemoveAllListeners();
        cameraFOVSlider.onValueChanged.AddListener(delegate
                                                   { SetCameraFOV(); });

        cameraFOVSlider.value = OptionsPreferencesManager.GetCameraFOV();
        cameraFOVText.text    = OptionsPreferencesManager.GetCameraFOV().ToString();

        CameraMove cameraMove = GetComponentInParent <CameraMove>();

        if (cameraMove != null)
        {
            playerCamera = cameraMove.GetComponentInChildren <Camera>();
        }
    }