void Awake() { instance = this; UserSettingsPanel.SetActive(false); ObjCharCamera.SetActive(false); // Invoke("OnEnabledUIView",0.01f); OnEnabledUIView(); FindSoundOnOff(); }
// 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); } }
public void OnClick() { if (!Directory.Exists(path.text)) { if (path.text == "") { EditorUtility.DisplayDialog("パスがないよ。", "空白です。", "はい。"); return; } if (!EditorUtility.DisplayDialog("フォルダーねぇじゃん。", "指定したフォルダーが存在しません。\n新規作成しますか?", "はい", "いいえ")) { return; } } path.text = Path.GetFullPath(path.text); UserSettingScript.setWorkingFolder(path.text); panel.SetActive(false); }
// Update is called once per frame void Update() { path.text = UserSettingScript.getWorkingFolder(); }
public void Activate() { this.gameObject.SetActive(true); path.text = UserSettingScript.getWorkingFolder(); currentFolder.text = "フォルダー名のみ指定した場合の親フォルダー:\n" + Directory.GetCurrentDirectory(); }