Initial Commit
This commit is contained in:
commit
ee5c2f922d
2255 changed files with 547750 additions and 0 deletions
20
Assets/Scripts/Data/Weapon/FragGrenadeDataComponent.cs
Normal file
20
Assets/Scripts/Data/Weapon/FragGrenadeDataComponent.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue