Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     path          = GameObject.Find("FolderPath").GetComponent <InputField>();
     currentFolder = GameObject.Find("subMessage").GetComponent <Text>();
     if (UserSettingScript.getWorkingFolder() == null)
     {
         this.gameObject.SetActive(true);
         path.text = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
         Debug.Log(Environment.GetFolderPath(Environment.SpecialFolder.Personal));
         Debug.Log(path.text);
     }
     else
     {
         this.gameObject.SetActive(false);
     }
 }
 // Update is called once per frame
 void Update()
 {
     path.text = UserSettingScript.getWorkingFolder();
 }
Ejemplo n.º 3
0
 public void Activate()
 {
     this.gameObject.SetActive(true);
     path.text          = UserSettingScript.getWorkingFolder();
     currentFolder.text = "フォルダー名のみ指定した場合の親フォルダー:\n" + Directory.GetCurrentDirectory();
 }