// Use this for initialization void Start() { string mainPath = MainMenu.pathToMain; string[] content = Utilitys.GetInformationTXT(mainPath); Char char = new Char("I:/info/privat/unity/PnP/Example/PC/PC_1.txt"); }
public void PlayLoad() { Debug.Log("path: " + path); path = EditorUtility.OpenFolderPanel("Choose main folder", "", ""); pathToMain = path + "/main.txt"; Debug.Log("path: " + path); Debug.Log("mainpath: " + pathToMain); Debug.Log("name: " + Utilitys.GetInformationTXT(pathToMain)[0]); ChangeTextPlayMenu.SetText(Utilitys.GetInformationTXT(pathToMain)[0]); ChangeBGPlayMenu.SetBackground(path, Utilitys.GetInformationTXT(pathToMain)[1]); }