Files
Gen_Hack-and-Slash-Roguelit…/Client/Assets/Scripts/Data/AttributesDefine.cs
2025-07-20 20:41:37 +08:00

28 lines
753 B
C#

namespace Data
{
public class AttributesDef : Define
{
public int health = 10;
public int moveSpeed = 1;
public int attack = 1;
public int defense = 0;
public int attackSpeed = 2;
public int attackRange = 3;
public int attackTargetCount = 1;
public AttributesDef Clone()
{
return new AttributesDef
{
health = this.health,
moveSpeed = this.moveSpeed,
attack = this.attack,
defense = this.defense,
attackSpeed = this.attackSpeed,
attackRange = this.attackRange,
attackTargetCount = this.attackTargetCount
};
}
}
}