Working ants
This commit is contained in:
parent
923cb317af
commit
86ff02a110
@ -28,9 +28,8 @@ namespace Passer.Control.Unity {
|
||||
|
||||
protected virtual void Update() {
|
||||
site.Update((ulong)(Time.time * 1000));
|
||||
if (thingQueue.TryDequeue(out Core.Thing thing)) {
|
||||
thing.CreateComponent();
|
||||
}
|
||||
while (thingQueue.TryDequeue(out Core.Thing thing))
|
||||
thing.CreateComponent();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user