Beispiel #1
0
    void Start()
    {
        StartCoroutine(fadeWait());

        AudioListener.pause = false;
        StartCoroutine(Starting());
        fLight.GetComponent <flashLightOnOF>().Scene2 = true;
        bgSound2.GetComponent <AudioSource>().Play();
        flikerSound.GetComponent <AudioSource>().Play();

        QualitySettings.SetQualityLevel(PlayerPrefs.GetInt("SavedQuality"));
        gameObject.GetComponent <TouchCamSwipe>().touchSensitivity = PlayerPrefs.GetInt("SavedLook");
        RenderSettings.ambientSkyColor = new Color(PlayerPrefs.GetInt("SavedVal"), PlayerPrefs.GetInt("SavedVal"), PlayerPrefs.GetInt("SavedVal"));

        if (PlayerPrefs.GetInt("SavedQuality") == 0)
        {
            CurrentQuality.GetComponent <Text>().text = "Current Quality = Low";
        }

        else if (PlayerPrefs.GetInt("SavedQuality") == 1)
        {
            CurrentQuality.GetComponent <Text>().text = "Current Quality = Medium";
        }

        else if (PlayerPrefs.GetInt("SavedQuality") == 2)
        {
            CurrentQuality.GetComponent <Text>().text = "Current Quality = High";
        }
    }
Beispiel #2
0
    void Start()
    {
        StartCoroutine(talkEnd());

        QualitySettings.SetQualityLevel(PlayerPrefs.GetInt("SavedQuality"));
        cam.GetComponent <TouchCamSwipe>().touchSensitivity = PlayerPrefs.GetInt("SavedLook");
        RenderSettings.ambientSkyColor = new Color(PlayerPrefs.GetInt("SavedVal"), PlayerPrefs.GetInt("SavedVal"), PlayerPrefs.GetInt("SavedVal"));

        if (PlayerPrefs.GetInt("SavedQuality") == 0)
        {
            CurrentQuality.GetComponent <Text>().text = "Current Quality = Low";
        }

        else if (PlayerPrefs.GetInt("SavedQuality") == 1)
        {
            CurrentQuality.GetComponent <Text>().text = "Current Quality = Medium";
        }

        else if (PlayerPrefs.GetInt("SavedQuality") == 2)
        {
            CurrentQuality.GetComponent <Text>().text = "Current Quality = High";
        }
    }