示例#1
0
    public bool LoadJsonFile(string path)
    {
        LoaderPerspective obj = Json.LoadJsonFileFromResources <LoaderPerspective>(path);

        Init(obj);

        return(true);
    }
示例#2
0
 protected void Init(LoaderPerspective obj)
 {
     Instance._Name        = obj._Name;
     Instance._GridDim     = new Vector2Int(obj._GridDim.x, obj._GridDim.y);
     Instance._Margin      = new Vector2(obj._Margin.x, obj._Margin.y);
     Instance._InnerMargin = new Vector2(obj._InnerMargin.x, obj._InnerMargin.y);
     Instance._Objects     = new List <Loader.LoaderObject>(obj._Objects);
     Instance._Subs        = new List <Loader.sub>(obj._Subs);
 }