2D-Platformer/Assets/Scripts/Data/Weapon/FragGrenadeDataComponent.cs
2022-02-12 12:53:50 +02:00

20 lines
No EOL
362 B
C#

using System;
using Unity.Entities;
using UnityEngine;
namespace DefaultNamespace
{
[Serializable]
public struct FragGrenadeData : IComponentData
{
public float Range;
}
public class FragGrenadeDataComponent : ComponentDataProxy<FragGrenadeData>
{
private void OnDrawGizmos()
{
Gizmos.DrawWireSphere(transform.position, Value.Range);
}
}
}