结构大修改,改成朴实无华的结构,不过度架构。能跑就行
This commit is contained in:
20
Assets/Scripts/Common/Data/TabListData.cs
Normal file
20
Assets/Scripts/Common/Data/TabListData.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class TabItemData
|
||||
{
|
||||
public int Id;
|
||||
public string Key;
|
||||
public string Icon;
|
||||
public bool IsAll;
|
||||
|
||||
// 条目可以是任意对象类型
|
||||
public List<object> Items = new List<object>();
|
||||
|
||||
// 子菜单
|
||||
public List<TabItemData> Children = new List<TabItemData>();
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Common/Data/TabListData.cs.meta
Normal file
3
Assets/Scripts/Common/Data/TabListData.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 47a09808fe3440d59857224bdc01a91f
|
||||
timeCreated: 1747970638
|
||||
Reference in New Issue
Block a user