修改错误

This commit is contained in:
GL 2024-12-24 09:36:18 +08:00
parent 2ce74d4a65
commit eac4427f5e

View File

@ -36,6 +36,7 @@ public enum Camp
public class Role : Fun public class Role : Fun
{ {
[Header("Id")] public string id; [Header("Id")] public string id;
[Header("Ãû³Æ")] public string Name;
[Header("ÕóÓª")] public Camp camp ; [Header("ÕóÓª")] public Camp camp ;
[Header("ѪÁ¿")] public float hp = 100f;//ѪÁ¿ [Header("ѪÁ¿")] public float hp = 100f;//ѪÁ¿
private float maxHp; private float maxHp;
@ -439,7 +440,7 @@ public class Role : Fun
{ {
if (id ==character.Id) if (id ==character.Id)
{ {
Name = character.Name;
MinAttack = int.Parse(character.MinAttack); MinAttack = int.Parse(character.MinAttack);
MaxAttack = int.Parse(character.MaxAttack); MaxAttack = int.Parse(character.MaxAttack);
AttackCD = float.Parse(character.AttackCD); AttackCD = float.Parse(character.AttackCD);