Exemple #1
0
        public static void ExcelToAsset()
        {
            fileName = "UIPanelData";
            UIPanelDataMgr mgr = ScriptableObject.CreateInstance <UIPanelDataMgr>();

            mgr.PanelInfoList = ReadExcel(excelPath);

            CreateAsset(mgr);
        }
Exemple #2
0
        public void ParseUIpanelTypeAsset()
        {
            if (panelInfoDict == null)
            {
                panelInfoDict = new Dictionary <string, UIPanelInfo>();
            }

            UIPanelDataMgr uiMgr = Resources.Load <UIPanelDataMgr>("AssetData/UIPanelData");

            foreach (UIPanelInfo info in uiMgr.PanelInfoList)
            {
                panelInfoDict.Add(info.panelName, info);
            }
        }