This commit is contained in:
CortexCore
2024-04-19 00:40:34 +08:00
parent aacf09b2b2
commit e12a6e5a46
195 changed files with 30343 additions and 40179 deletions

View File

@@ -28,6 +28,7 @@ namespace BITKit.Sensors
[Header(Constant.Header.InternalVariables)]
// ReSharper disable once FieldCanBeMadeReadOnly.Local
private List<Collider> detected = new();
public HashSet<int> Ignores { get; } = new();
private readonly Queue<Collider> triggerEnterQueue = new();
private readonly Queue<Collider> triggerExitQueue = new();
@@ -171,7 +172,7 @@ namespace BITKit.Sensors
if (!agent || detectedContainer is null) return;
if (BITAppForUnity.IsPlaying is false) return;
detectedContainer.Clear();
foreach (var x in agent.detected)
foreach (var x in agent.Get())
{
ObjectField objectField = new()
{