Fix model parent when multiple participants
This commit is contained in:
parent
80c4983b34
commit
53416c5ede
@ -194,7 +194,7 @@ namespace RoboidControl.Unity {
|
|||||||
Thing[] things = FindObjectsOfType<Thing>();
|
Thing[] things = FindObjectsOfType<Thing>();
|
||||||
Thing parentThing = null;
|
Thing parentThing = null;
|
||||||
foreach (Thing thing in things) {
|
foreach (Thing thing in things) {
|
||||||
if (thing.core.id == coreThing.id) {
|
if (thing.core.owner.networkId == coreThing.owner.networkId && thing.core.id == coreThing.id) {
|
||||||
parentTransform = thing.transform;
|
parentTransform = thing.transform;
|
||||||
parentThing = thing;
|
parentThing = thing;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user