using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// /// 管理 /// public class Manage : MonoBehaviour { public static Manage inst; /// /// 记录当前一级菜单配置文件 /// //[HideInInspector] public BaseConf conf; public UI_manage uI_Manage; /// /// 一级菜单配置文件列表 /// [Tooltip("一级菜单配置文件列表")] public List 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() { } }