51 lines
928 B
C#
51 lines
928 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// 管理
|
|
/// </summary>
|
|
public class Manage : MonoBehaviour
|
|
{
|
|
public static Manage inst;
|
|
|
|
/// <summary>
|
|
/// 记录当前一级菜单配置文件
|
|
/// </summary>
|
|
//[HideInInspector]
|
|
public BaseConf conf;
|
|
|
|
public UI_manage uI_Manage;
|
|
|
|
/// <summary>
|
|
/// 一级菜单配置文件列表
|
|
/// </summary>
|
|
[Tooltip("一级菜单配置文件列表")]
|
|
public List<BaseConf> confs;
|
|
|
|
|
|
private void Awake()
|
|
{
|
|
if (Manage.inst == null)
|
|
{
|
|
inst = this;
|
|
}
|
|
conf = confs[0];
|
|
uI_Manage.menuitem_show(confs[0]);//初始化二级菜单
|
|
|
|
}
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
}
|