using System.Collections.Generic; using UnityEngine; namespace ET { public class ConfigLoader: IConfigLoader { public void GetAllConfigBytes(Dictionary output) { Dictionary keys = YooAssetComponent.Instance.GetAssetsByTagSync("Config"); foreach (var kv in keys) { TextAsset v = kv.Value as TextAsset; string key = kv.Key; output[key] = v.bytes; } } public byte[] GetOneConfigBytes(string configName) { TextAsset v = ResourcesComponent.Instance.GetAsset("config.unity3d", configName) as TextAsset; return v.bytes; } } }