您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
22 行
453 B
22 行
453 B
using System;
|
|
using Unity.Entities;
|
|
using UnityEngine;
|
|
using Unity.NetCode;
|
|
|
|
[Serializable]
|
|
public struct DamageHistoryData : IComponentData
|
|
{
|
|
[Serializable]
|
|
public struct InflictedDamage
|
|
{
|
|
[GhostDefaultField]
|
|
public int tick;
|
|
[GhostDefaultField]
|
|
public int lethal;
|
|
}
|
|
[NonSerialized] public InflictedDamage inflictedDamage;
|
|
}
|
|
|
|
public class DamageHistory : ComponentDataProxy<DamageHistoryData>
|
|
{
|
|
}
|