| 12345678910111213141516171819202122232425 |
- using System.Collections.Generic;
- using Sirenix.OdinInspector;
- using Sirenix.Serialization;
- namespace YIUIFramework
- {
- //[CreateAssetMenu(fileName = "RedDotConfigAsset", menuName = "YIUI/RedDot/RedDotConfigAsset", order = 2)]
- [LabelText("红点关系配置资源")]
- public class RedDotConfigAsset : SerializedScriptableObject
- {
- [OdinSerialize]
- [ReadOnly]
- [ShowInInspector]
- public Dictionary<int, RedDotConfigData> m_AllRedDotConfigDic =
- new Dictionary<int, RedDotConfigData>();
- public IReadOnlyDictionary<int, RedDotConfigData> AllRedDotConfigDic => m_AllRedDotConfigDic;
- public RedDotConfigData GetConfigData(int key)
- {
- m_AllRedDotConfigDic.TryGetValue(key, out var value);
- return value;
- }
- }
- }
|