private List <Vector3> LoadRoute(string name) { var data = JsonFactory.FromResource <Vector3[]>($"Resources.{name}.json", Assembly.GetExecutingAssembly()); return(data.ToList()); }
private WorldPolygon Load(string name) { var data = JsonFactory.FromResource <Vector3[]>($"Resources.{name}.json", Assembly.GetExecutingAssembly()); return(new WorldPolygon(data)); }