using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class clean : MonoBehaviour { /// /// Python路径UI /// public TextMeshProUGUI Python; /// /// Java路径UI /// public TextMeshProUGUI Java; /// /// C路径UI /// public TextMeshProUGUI C; /// /// IDE未设置面板 /// public GameObject IDE未设置面板; /// /// IDE设置面板 /// public GameObject IDE设置面板; /// /// 当前选择UI的值 /// public string nowChoose="Python"; /// /// 路径设置面板 /// public GameObject 路径设置面板; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public void Clean() { PlayerPrefs.SetString("pythonPath", "选择已安装IDE所在文件夹的路径"); PlayerPrefs.SetString("javaPath", "选择已安装IDE所在文件夹的路径"); PlayerPrefs.SetString("cPath", "选择已安装IDE所在文件夹的路径"); Python.text = "选择已安装IDE所在文件夹的路径"; Java.text = "选择已安装IDE所在文件夹的路径"; C.text = "选择已安装IDE所在文件夹的路径"; } public void next() { if ((nowChoose== "Python"&& Python.text != "选择已安装IDE所在文件夹的路径") || (nowChoose == "Java"&&Java.text != "选择已安装IDE所在文件夹的路径") || (nowChoose == "C"&&C.text != "选择已安装IDE所在文件夹的路径")) { IDE设置面板.SetActive(false); 路径设置面板.SetActive(true); } else { IDE未设置面板.SetActive(true); IDE设置面板.SetActive(false); } } }