public override void Preload() { AllFiles.Clear(); filesList.Clear(); // Load the index file. indexFile = ReadFile(INDEX_FILENAME); if (indexFile == null) { Configs.LogError($"Index file is missing at Resources path {INDEX_FILENAME}."); return; } // Load all the files. foreach (var nameNode in indexFile.Parsed.Values) { string filename = nameNode.StringValue; filesList.Add(filename); if (filename != "index") { AllFiles[filename] = ReadFile(filename); } } }
public static void RegisterAll() { Configs.RegisterFromDoc <Vector2>(FromVector2); Configs.RegisterFromDoc <Vector3>(FromVector3); Configs.RegisterFromDoc <Color>(FromColor); }