您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
29 行
761 B
29 行
761 B
using Unity.Entities;
|
|
using Unity.Mathematics;
|
|
using Unity.NetCode;
|
|
|
|
namespace Unity.MegaCity.Gameplay
|
|
{
|
|
/// <summary>
|
|
/// Vehicle laser settings
|
|
/// </summary>
|
|
public struct VehicleLaser : IComponentData
|
|
{
|
|
[GhostField(Quantization = 1000)] public float Energy;
|
|
[GhostField(Quantization = 1000)] public float3 HitPoint;
|
|
[GhostField] public Entity Target;
|
|
|
|
public float ChargerSpeed;
|
|
public float ForwardOffset;
|
|
public float Length;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Immunity settings
|
|
/// </summary>
|
|
public struct Immunity : IComponentData
|
|
{
|
|
public float TickAmount;
|
|
[GhostField] public NetworkTick StateChangeTick;
|
|
}
|
|
}
|