您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
31 行
699 B
31 行
699 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class MaxLodOption : MonoBehaviour {
|
|
|
|
private int curlevel;
|
|
public Text displayText;
|
|
|
|
private void Start() {
|
|
curlevel = (int)QualitySettings.lodBias;
|
|
displayText.text = curlevel.ToString();
|
|
}
|
|
|
|
public void IncreaseLevel()
|
|
{
|
|
if(curlevel < 7)
|
|
curlevel++;
|
|
QualitySettings.lodBias = curlevel;
|
|
displayText.text = curlevel.ToString();
|
|
}
|
|
|
|
public void DecreaseLevel()
|
|
{
|
|
if (curlevel > 0)
|
|
curlevel--;
|
|
QualitySettings.lodBias = curlevel;
|
|
displayText.text = curlevel.ToString();
|
|
}
|
|
}
|