コード例 #1
0
    public static Utility_ManifestJson CreateFromJson(string json)
    {
        Utility_ManifestJson man = new Utility_ManifestJson();

        try
        {
            man.dependencies = DependencyJson.GetDependeciesFromText(json);
        }
        catch (Exception e)
        {
            UnityEngine.Debug.LogWarning(e);
        }
        return(man);
    }
    public static Utility_PackageJson CreateFromJson(string json)
    {
        Utility_PackageJson value = null;

        try
        {
            value = JsonUtility.FromJson <Utility_PackageJson>(json);
        }
        catch (Exception)
        {
            //  UnityEngine.Debug.LogWarning(e);
        }
        value.dependencies = DependencyJson.GetDependeciesFromText(json);


        return(value);
    }
コード例 #3
0
 private void Remove(DependencyJson dependencies)
 {
     RemoveFromName(dependencies.nameId);
     RemoveFromUrl(dependencies.value);
 }
コード例 #4
0
 private void Add(DependencyJson dependencies)
 {
     Add(dependencies.nameId, dependencies.value);
 }