Ejemplo n.º 1
0
        private void Load <T>(Action onComplate) where T : BaseConfig, new()
        {
            allCount++;
            T      config = new T();
            string path   = FilePathTools.getXmlPath(config.Name());

            Debug.Log("加载配置文件:" + path);

            AssetsManager.Instance.LoadAssetWithWWW(path, (www) =>
            {
                config.Read(www.text);
                dic.Add(typeof(T), config);
                onComplate();
            });
        }