using UnityEngine;
using System;
using System.Collections.Generic;
using UnityEditor;
using Game;
using CaoCao.Resources;
using System.IO;
using Game.HotFix;
using CaoCao.XAsset;
public class UIMgrPath : ScriptableObject
{
///
/// 所有UI预制体路径
///
public List mAllUIPath = new List();
[System.Serializable]
public struct UIPath
{
///
/// UI名
///
public string mUIName;
///
/// UI路径
///
public string mUIPath;
}
///
/// 同步获取
///
///
public static Dictionary GetDic()
{
Dictionary retDic = new Dictionary();
//TextAsset ta = (TextAsset)HotfixEntry.Resources.LoadAsset(UIMgr.UIPathConfigFile);
TextAsset ta = HotfixEntry.Resources.Load(UIMgr.UIPathConfigFile);
if (ta == null)
{
Debug.LogError("请先生成UI路径文件. 菜单/UI工具/生成UI预制体路径文件");
return retDic;
}
string xxxFile2Str = ta.text;
retDic = CaoCao.LitJson.JsonMapper.ToObject>(xxxFile2Str);
return retDic;
}
}