| 123456789101112131415161718192021 |
- using System.Collections.Generic;
- using System.IO;
- using UnityEngine;
- namespace ET
- {
- public static class LoadConfigHelper
- {
- public static void LoadAllConfigBytes(Dictionary<string, byte[]> output)
- {
- Dictionary<string, UnityEngine.Object> keys = ResourcesComponent.Instance.GetBundleAll("config.unity3d");
- foreach (var kv in keys)
- {
- TextAsset v = kv.Value as TextAsset;
- string key = $"{kv.Key}.bytes";
- output[key] = v.bytes;
- }
- }
- }
- }
|