| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using Sirenix.OdinInspector;
- using Sirenix.Serialization;
- namespace YIUIFramework
- {
- [HideLabel]
- [HideReferenceObjectPicker]
- [Serializable]
- public class RedDotKeyData
- {
- [LabelText("Id")]
- [LabelWidth(50)]
- [MinValue(1)]
- [TableColumnWidth(150, resizable: false)]
- [ShowInInspector]
- [OdinSerialize]
- public int Id { get; internal set; } = 1;
- [LabelText("描述")]
- [LabelWidth(50)]
- [ShowInInspector]
- [OdinSerialize]
- public string Des { get; internal set; }
- private RedDotKeyData()
- {
- }
- public RedDotKeyData(int id)
- {
- Id = id;
- }
- public RedDotKeyData(int id, string des)
- {
- Id = id;
- Des = des;
- }
- public void ChangeDes(string des)
- {
- Des = des;
- }
- }
- }
|