mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
feat: add sensors
This commit is contained in:
14
Assets/_Project/Develop/Runtime/Utilities/Buffer.cs
Normal file
14
Assets/_Project/Develop/Runtime/Utilities/Buffer.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace _Project.Develop.Runtime.Utilities
|
||||
{
|
||||
public class Buffer<T>
|
||||
{
|
||||
public T[] Items;
|
||||
public int Count;
|
||||
|
||||
public Buffer(int initialSize)
|
||||
{
|
||||
Items = new T[initialSize];
|
||||
Count = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/_Project/Develop/Runtime/Utilities/Buffer.cs.meta
Normal file
3
Assets/_Project/Develop/Runtime/Utilities/Buffer.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29473d664e014a86b3257246837569ce
|
||||
timeCreated: 1771526615
|
||||
13
Assets/_Project/Develop/Runtime/Utilities/Layers.cs
Normal file
13
Assets/_Project/Develop/Runtime/Utilities/Layers.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Develop.Runtime.Utilities
|
||||
{
|
||||
public static class Layers
|
||||
{
|
||||
public static readonly int Characters = LayerMask.NameToLayer("Characters");
|
||||
public static readonly LayerMask CharactersMask = 1 << Characters;
|
||||
|
||||
public static readonly int Environment = LayerMask.NameToLayer("Environment");
|
||||
public static readonly LayerMask EnvironmentMask = 1 << Environment;
|
||||
}
|
||||
}
|
||||
3
Assets/_Project/Develop/Runtime/Utilities/Layers.cs.meta
Normal file
3
Assets/_Project/Develop/Runtime/Utilities/Layers.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 49a6848819fd4acb8663089ef8f00659
|
||||
timeCreated: 1771526630
|
||||
Reference in New Issue
Block a user