예제 #1
0
    private void Start()
    {
        string path = Path.Combine(Application.dataPath, "Resources/Cache");

        if (!Directory.Exists(path))
        {
            Directory.CreateDirectory(path);
        }
        string[] files = Directory.GetFiles(path, "*.regmap", SearchOption.AllDirectories);
        for (int i = 0; i < files.Length; i++)
        {
            RegMap regMap = new RegMap();
            if (regMap.Load(files[i]))
            {
                Add(regMap);
            }
        }
    }