IndieGame/client/Assets/Scripts/System/Property/PropertyData.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

41 lines
1.0 KiB
C#

using Sirenix.OdinInspector;
using System.Collections;
using System.Collections.Generic;
using TableConfig;
using UnityEngine;
namespace Ether
{
public class PropertyData : MonoBehaviour
{
[LabelText("名称")]
public string Name;
[LabelText("等级")]
public int Level;
[LabelText("职业")]
public List<string> JobList;
[ShowInInspector]
[LabelText("属性")]
[DictionaryDrawerSettings(KeyLabel = "属性名", ValueLabel = "属性值")]
public Dictionary<Property, float> Propertys = new Dictionary<Property, float>()
{
{ Property.Constitution, 10 },
{ Property.Agility, 10 },
{ Property.Strength, 10 },
{ Property.Ranged, 10 },
{ Property.Focus, 10 },
{ Property.Intelligence, 10 },
{ Property.Luck, 0 },
{ Property.Stamina, 100 },
{ Property.Hunger, 0 },
{ Property.Thirst, 0 },
};
}
}