您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
723 B

using UnityEngine;
using UnityEngine.UI;
public class MaxLodOption : MonoBehaviour {
private int _currentLevel;
public Text displayText;
private void Start() {
_currentLevel = (int)QualitySettings.lodBias;
displayText.text = _currentLevel.ToString();
}
public void IncreaseLevel()
{
if(_currentLevel < 7)
_currentLevel++;
QualitySettings.lodBias = _currentLevel;
displayText.text = _currentLevel.ToString();
}
public void DecreaseLevel()
{
if (_currentLevel > 0)
_currentLevel--;
QualitySettings.lodBias = _currentLevel;
displayText.text = _currentLevel.ToString();
}
}