UGUI框架
本套课程是学习的Siki学院的UI框架
1,新建一个工程 在Resource文件夹下的UIPanel文件夹下 创建几个UI的Prefab。
2, 编写UIPanelType脚本
using UnityEngine;
using System.Collections;
using System;
public enum UIPanelType {
ItemMessage,
Knapsack,
MainMenu,
Shop,
Skill,
System,
Task
}
3,编写json存储数据 Panel的存储路径和类型
{
"infoList":
[
{"panelTypeString":"ItemMessage",
"path":"UIPanel/ItemMessagePanel"},
{"panelTypeString":"Knapsack",
"path":"UIPanel/KnapsackPanel"},
{"panelTypeString":"MainMenu",
"path":"UIPanel/MainMenuPanel"},
{"panelTypeString":"Shop",
"path":"UIPanel/ShopPanel"},
{"panelTypeString":&