Aded focus
This commit is contained in:
parent
78aed40a9b
commit
a017c4de18
@ -137,7 +137,7 @@ namespace Passer.Control.Core {
|
||||
int n = this.things.Count;
|
||||
for (int ix = 0; ix < n; ix++) {
|
||||
Thing thing = this.things[ix];
|
||||
if (thing != null && thing.parent == null) // update only root things
|
||||
if (thing != null) // && thing.parent == null) // update only root things
|
||||
thing.Update(currentTimeMS);
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace Passer.Control.Core {
|
||||
}
|
||||
|
||||
public void Add(Thing thing, bool invokeEvent = true) {
|
||||
//Console.WriteLine($"added thing [{thing.networkId}/{thing.id}]");
|
||||
Console.WriteLine($"added thing [{thing.networkId}/{thing.id}]");
|
||||
Thing foundThing = Get(thing.networkId, thing.id);
|
||||
|
||||
if (foundThing == null) {
|
||||
@ -41,6 +41,7 @@ namespace Passer.Control.Core {
|
||||
// should be: find first non-existing id...
|
||||
thing.id = (byte)this.things.Count;
|
||||
things.Add(thing);
|
||||
Console.Write($"Add thing, updated thing id to [{thing.networkId}/{thing.id}]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user