2021-04-08 20:09:59 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
public static class NumHelper
|
|
|
|
|
{
|
|
|
|
|
public static void FillNum(Unit unit,UnitCharacter unitCharacter)
|
|
|
|
|
{
|
2021-04-11 19:50:39 +08:00
|
|
|
|
NumericComponent num = unit.GetComponent<NumericComponent>();
|
2021-04-08 20:09:59 +08:00
|
|
|
|
num.Set(NumericType.Hp, unitCharacter.Hp);
|
|
|
|
|
num.Set(NumericType.Transmigration, unitCharacter.Trans);
|
|
|
|
|
num.Set(NumericType.MaxHp, unitCharacter.MaxHp);
|
|
|
|
|
num.Set(NumericType.Mp, unitCharacter.Mp);
|
|
|
|
|
num.Set(NumericType.MaxMp, unitCharacter.MaxMp);
|
|
|
|
|
num.Set(NumericType.Level, unitCharacter.Level);
|
|
|
|
|
//num.Set(NumericType.SkinId, unitCharacter.SkinId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|