public static ProgressTree FromJson(this ProgressTree _tree, TextAsset _json) { Debug.Log($"Building progressTree from JSON:\n{_json.text}"); ITreeRequirement[] requirements = JsonRequirementCollection.FromJson(_json.text); _tree.Build(requirements); return(_tree); }
public static ProgressTree FromYaml(this ProgressTree _tree, TextAsset _yaml) { Debug.Log($"Building progressTree from YAML:\n{_yaml.text}"); ITreeRequirement[] requirements = YamlRequirementCollection.FromYaml(_yaml.text); _tree.Build(requirements); return(_tree); }