コード例 #1
0
    public void Load_Quality()
    {
        PlayerDataQuality loadedDataQuality = SaveLoadQuality.LoadPlayer();

        quality_selection = loadedDataQuality.quality_selection;

        if (quality_selection == 0)
        {
            Post_Processing.SetActive(false);
        }
        else if (quality_selection == 1)
        {
            Post_Processing.SetActive(true);
        }
    }
コード例 #2
0
    public void Load_QualitySettings()
    {
        PlayerDataQuality loadedDataQuality = SaveLoadQuality.LoadPlayer();

        quality_selection = loadedDataQuality.quality_selection;

        if (quality_selection == 0)
        {
            Quality_Low.gameObject.GetComponent <Image>().sprite  = quality_selected;
            Quality_High.gameObject.GetComponent <Image>().sprite = quality_unselected;
        }
        else if (quality_selection == 1)
        {
            Quality_Low.gameObject.GetComponent <Image>().sprite  = quality_unselected;
            Quality_High.gameObject.GetComponent <Image>().sprite = quality_selected;
        }
    }