示例#1
0
    public static ProblemSwedish Import(string filePath)
    {
        StreamReader reader = new StreamReader(filePath);
        string       json   = reader.ReadToEnd();

        reader.Close();
        ProblemSwedish map = JsonUtility.FromJson <ProblemSwedish>(json);

        map.read_polygons(json);
        return(map);
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     problem = ProblemSwedish.Import(problemPath);
     actors  = new List <MotionModelSwedish>();
     spawnObjects();
 }