protected void LoadSettings() { if (Settings == null) { string path = Application.dataPath + "/dialoguesmith-prefs.json"; if (File.Exists(path)) { Settings = JsonUtility.FromJson <EditorSettingEntity>(File.ReadAllText(path)); } else { Settings = new EditorSettingEntity(); } } }
public ManagerNode(EditorSettingEntity entity) { this.entity = entity; this.Window = new Rect(entity.window.x, entity.window.y, entity.window.width, entity.window.height); }