示例#1
0
        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();
                }
            }
        }
示例#2
0
 public ManagerNode(EditorSettingEntity entity)
 {
     this.entity = entity;
     this.Window = new Rect(entity.window.x, entity.window.y, entity.window.width, entity.window.height);
 }