Ejemplo n.º 1
0
    private static void ReadLOD()
    {
        int @int = PlayerPrefs.GetInt("QualityOfLODName", 0);
        int num  = @int;

        if (num != 200 && num != 250 && num != 300)
        {
            GameLevelManager.SetGameQuality(GameLevelManager.GameLevelVariable.LODLEVEL, true);
        }
        else
        {
            GameLevelManager.SetGameQuality(@int, true);
        }
    }
Ejemplo n.º 2
0
    private void SetLOD()
    {
        int num = 0;

        if (this.IsLOD1On)
        {
            num = 300;
        }
        else if (this.IsLOD2On)
        {
            num = 250;
        }
        else if (this.IsLOD3On)
        {
            num = 200;
        }
        if (num > 0)
        {
            GameLevelManager.SetGameQuality(num, false);
        }
    }