public static void Load(string path) { var file = new ItemFile <Definition>(path); Debug.LogFormat("Num car color entries: {0}", file.GetItems <CarColorDef>().Count()); _sColors = file.GetItems <ColorDef>().Select(x => new Color32(x.R, x.G, x.B, 255)).ToArray(); _sCarColors = file.GetItems <CarColorDef>().DistinctBy(ccd => ccd.Name).ToDictionary(x => x.Name, x => new CarColors(x)); }