(client) feat:实现热重载,实现多维度,实现武器,实现掉落物,实现状态UI,实现攻击AI (#44)
Co-authored-by: zzdxxz <2079238449@qq.com> Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
27
Client/Assets/Scripts/Entity/Attributes.cs
Normal file
27
Client/Assets/Scripts/Entity/Attributes.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Data;
|
||||
|
||||
namespace Entity
|
||||
{
|
||||
public class Attributes
|
||||
{
|
||||
public int health = 10;
|
||||
public float moveSpeed = 1;
|
||||
public int attack = 1;
|
||||
public int defense = 0;
|
||||
public int attackSpeed = 2;
|
||||
public int attackRange = 3;
|
||||
public int attackTargetCount = 1;
|
||||
public Attributes(AttributesDef def)
|
||||
{
|
||||
health = def.health;
|
||||
moveSpeed = def.moveSpeed;
|
||||
attack = def.attack;
|
||||
defense = def.defense;
|
||||
attackSpeed = def.attackSpeed;
|
||||
attackRange = def.attackRange;
|
||||
attackTargetCount = def.attackTargetCount;
|
||||
}
|
||||
public Attributes()
|
||||
{}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user