Working ants
This commit is contained in:
parent
923cb317af
commit
86ff02a110
@ -28,9 +28,8 @@ namespace Passer.Control.Unity {
|
|||||||
|
|
||||||
protected virtual void Update() {
|
protected virtual void Update() {
|
||||||
site.Update((ulong)(Time.time * 1000));
|
site.Update((ulong)(Time.time * 1000));
|
||||||
if (thingQueue.TryDequeue(out Core.Thing thing)) {
|
while (thingQueue.TryDequeue(out Core.Thing thing))
|
||||||
thing.CreateComponent();
|
thing.CreateComponent();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,10 @@ namespace Passer.Control.Unity {
|
|||||||
private void OnTriggerEnter(Collider other) {
|
private void OnTriggerEnter(Collider other) {
|
||||||
if (other.isTrigger)
|
if (other.isTrigger)
|
||||||
return;
|
return;
|
||||||
|
if (this.transform.root == other.transform.root)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Debug.Log($"touched {other.gameObject.name}");
|
||||||
this.coreSensor.touchedSomething = true;
|
this.coreSensor.touchedSomething = true;
|
||||||
}
|
}
|
||||||
private void OnTriggerExit(Collider other) {
|
private void OnTriggerExit(Collider other) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user