Working ants

This commit is contained in:
Pascal Serrarens 2025-02-18 15:05:07 +01:00
parent 923cb317af
commit 86ff02a110
2 changed files with 6 additions and 4 deletions

View File

@ -28,11 +28,10 @@ namespace Passer.Control.Unity {
protected virtual void Update() {
site.Update((ulong)(Time.time * 1000));
if (thingQueue.TryDequeue(out Core.Thing thing)) {
while (thingQueue.TryDequeue(out Core.Thing thing))
thing.CreateComponent();
}
}
}
}
#endif

View File

@ -40,7 +40,10 @@ namespace Passer.Control.Unity {
private void OnTriggerEnter(Collider other) {
if (other.isTrigger)
return;
if (this.transform.root == other.transform.root)
return;
Debug.Log($"touched {other.gameObject.name}");
this.coreSensor.touchedSomething = true;
}
private void OnTriggerExit(Collider other) {